Top IMS DC Interview Questions for Experienced

I am giving here some of the top IMS DC interview questions asked in Altimetric, HCL, Tech Mahindra, and IBM.

IMS DC Interview questions

  1. What is the IMS TM region?
    1. The IMS TM control region is a z/OS address space that can be initiated as a z/OS-started task or as a job by submitting JCL. The terminals, Fast Path databases, message queues, and logs are all attached to this control region.
  2. The IMS TM control region uses z/OS access methods for terminal and database access.
    1. After the IMS TM control region is started, it starts the system regions, DL/I separate address space (DLISAS), and Database Recovery Control (DBRC). Then you can start the message processing regions (MPRs) and batch message processing (BMP) regions through the use of the following:
    2. – z/OS commands (START xxxxxxxx) – IMS commands (/START REGION xxxxxxxx) – Job submission – Automated operator commands
  3. What is DCCTL in IMSDC?
    1. The Data Communications Control (DCCTL, pronounced “DC control”) environment enables you to use IMS TM independently of IMS DB. DCCTL provides system performance in terms of throughput, system availability, and integrity. DCCTL can coexist with IMS TM application programs and installed terminals.
  4. What are the 3 different terminals in IMSDC?
    1. Static terminal, Dynamic terminal, Extended terminal option
  5. What is a static terminal?
    1. A static terminal is defined in the IMS system definition (SYSGEN), and the definition determines the physical terminal name (called the node name) and logical terminal name (LTERM) available for use.
  6. What is a Dynamic terminal?
    1. A dynamic terminal is not statically defined in the IMS system definition. IMS can create a dynamic terminal definition. This type requires either the IMS ETO, which is a separately priced feature of IMS TM, or other third-party vendor products. Definitions for dynamic terminals are generated when the user logs on.
    2. If a terminal user attempts to connect to IMS using a terminal that is defined to IMS as static, the user will use the defined node name and LTERM name combination.
    3. If a terminal user attempts to connect to IMS using a terminal that is not defined to IMS as static, and dynamic terminal support is available, a dynamic terminal product (such as ETO) is used to determine the LTERM name and whether the name is based on the user ID, the node name, or some other value.
  7. What are Extended terminal options?
    1. IMS Extended Terminal Option (ETO) provides dynamic terminal and local and remote logical terminal support for IMS TM.
    2. You can add terminal hardware and LTERMs to the IMS system without first defining them. ETO gives you the option of eliminating macro statements in the IMS system definition of VTAM terminals and LTERMs. ETO enhances the availability of your IMS by eliminating the need for you to bring the system down to add terminals and LTERMs.
    3. ETO also enhances security for the IMS TM user by associating all output with a specific user, instead of with a device. ETO requires the user to sign on.
    4. ETO reduces the IMS system definition time for those systems where the terminal network is defined dynamically.
  8. What are the phases involved in the IMS DC program?
    1. Initialization is the clearing of application program working storage. Retrieve a transaction input message segment A Data Language/Interface (DL/I) message call (GU) to IMS TM is used to retrieve an input message segment from the IMS Queue Manager. Status code checks The application checks the status code from IMS TM that indicates whether the input message was successfully retrieved or if no more input messages are available to process. Input message syntax check IMS TM performs a basic syntax check of the input message before delivery to the application program. The application program performs any additional data validation checks. Database processing is performed, preferably in one phase, which means that the retrieval of a database segment is immediately followed by its update. An example of database processing in more than one phase is to initially retrieve all the segments that the program requires and then perform a second retrieve and then update. Output processing The application builds an output response message and uses the DL/I message ISRT call to return the results to the originator of the transaction input request.
  9. What are the different CALLs involved in the IMS DC program?
    1. GU (Get Unique)Retrieve the first, or only, segment of the input message.
    2. GN (Get Next)Retrieve second and subsequent message segments.
    3. ISRT (Insert) inserts an output message segment into the output message queue. These output messages are not sent until the transaction unit-of-work synchronization point has occurred.
    4. CHNG (Change Destination) – Set the output destination for subsequent Insert calls.
  10. How PSB should be in the IMS DC program?
    1. In addition to database program control blocks (PCBs), the program specification block (PSB) contains one or more message PCBs. The message I/O PCB identifies the originating logical device. The I/O PCB must be referenced in the Get Unique (GU) and Insert message (ISRT) calls. In addition, one or more alternate output PCBs (TP PCBs) can be defined. Their logical destination can be defined in the PCBs or set dynamically by the application program using the Change destination (CHNG) calls.
  11. How do we code Segments in the IMS DC program?
    1. The messages that application programs receive and send consist of one or more message segments. Single-segment messages contain only one segment. A single GU and ISRT call is used for processing single-segment messages.
    2. For multisegment input message processing, the application program uses a GU call to retrieve the first segment of a message, and GN calls to retrieve the remaining segments. For multisegment output messages, the application program uses multiple ISRT calls.
  12. What is the role of Scratch Pad Area(SPA) in the Conversational program?
    1. IMS provides support for conversational message processing. The conversational programming model processes transactions comprised of several steps. A conversational application program divides the transaction processing work into a connected series of interactions and uses the IMS-managed scratch pad area (SPA) to maintain the conversational state.
    2. The conversational application program issues the message GU call to retrieve the SPA to determine the next transactional interaction and the message GN call to retrieve an input message entered from a conversational mode device. The conversational application program updates the conversation state in the SPA with a message ISRT call.
    3. When an application program wants to terminate the conversation, it can indicate this by inserting a blank transaction code into the SPA
  13. How many message queues are there in the IMS DC program?
    1. I/O PCB Response messages (messages that are generated as a direct response to an input message from this device)
  14. Command responses
    1. Alternate TP PCB alternate output messages (messages inserted to an alternate PCB)
  15. How message switching happens in the IMS DC program?
    1. A message switch occurs when a user wants to send a message to another user. The basic format of a message switch is the destination LTERM name, followed by a blank and the message text.
    2. A program-to-program switch or program-to-program message switch is a program that is already executing that requests a new transaction be put on the IMS message queues for standard scheduling and execution.
    3. This new transaction can do the following: Continue the processing of the first transaction and respond to the originating logical device
    4. The process as an independent transaction unit of work
  16. How many ways a Program will be terminated in IMSDC programs?
    1. Normal Termination
      Normal termination involves the program returning control to IMS TM when it finishes processing.
    2. Abnormal Termination
      When an IMS-managed application program abnormally terminates, IMS prevents the rescheduling of the application program, any uncommitted database changes are dynamically backed out, and any uncommitted output messages are canceled.
  17. How checkpoint restart happens in the IMS DC program?
    1. To ensure database and message integrity, IMS uses logging and checkpoint/restart processing. In case of a hardware or software system failure, IMS can be restarted. This restart includes reading the IMS log to reposition the databases and messages to recover from the point of failure.
  18. Will IMSDB/DC supports multi threading  like CICS?
    1. NO
  19. How integrity is maintained in IMSDC programs?
    1. The IMS program isolation function ensures database integrity. All database modifications and message created by an application program is isolated from any other application programs running in the IMS system until an application program completes a synchronization point. This ensures that only committed data can be used by concurrent application programs. A synchronization point is established with a message Get Unique (GU) call for a new input message, a checkpoint call, or an application program normal termination.
    2. Program isolation allows two or more application programs to concurrently run with common data segment types, even when the processing intent is to update, add, or delete.
    3. With program isolation and dynamic back out, it is possible to resolve potential database deadlock situations transparent to the application programs.
    4. The following sequence of events is an example of a deadlock:
    5. – Program A updates database element X. – Program B updates database element Y. – Program A requests Y and must wait for the synchronization point of program B. – Program B in turn requests X and must wait for the synchronization point of program A.

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.