IMS/DL/I Database Programming

Test your knowledge of IMS (Information Management System) database programming concepts including DL/I calls, command codes, SSAs, PCBs, and IMS processing modes.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What of the following is not a sequential processing?

  1. Using a series of GN calls followed by a GNP call
  2. Using unqualified SSA's with GNP
  3. Using qualified SSA's with GU
  4. Using qualified SSA's with GN
  5. Using no SSA's with GNP
Question 2 Multiple Choice (Single Answer)

Which is not a IMS mode of processing

  1. DLI
  2. BMP
  3. CMP
  4. MPP
Question 3 Multiple Choice (Single Answer)

What segment processing occurs when you issue a DLET?

  1. The original segment is deleted and a status code is returned, prompting the program for further deletes.
  2. The segment at the highest level in the hierarchy is deleted.
  3. The segment is deleted and a new SSA must be specified on the next call.
  4. A delete does not occur unless the correct segment has been called.
  5. The segment and all subordinate segments are deleted.
Question 4 Multiple Choice (Single Answer)

What is the first required call before a replace?

  1. REPL
  2. GHU
  3. ISRT
  4. G
  5. GN
Question 5 Multiple Choice (Single Answer)

GHU SUPPLIERD(SUPPLRNO=10) PARTSIZEDN What does IMS do if you use the D and N command codes together as illustrated in the sample code above?

  1. The segment is retrieved, but is not replaced.
  2. The N command code applies only to ISRT calls
  3. An error is raised.
  4. The command code N is ignored.
  5. The segment is retrieved and is replaced.
Question 6 Multiple Choice (Single Answer)

What command code causes more than one segment to be brought into the I/O area with a single call?

  1. C
  2. D
  3. I
  4. L
  5. O
Question 7 Multiple Choice (Single Answer)

What rule must you meet in order to fully qualify the GU call?

  1. The PCB status code must be included.
  2. SSBs must be freed before call.
  3. A get call must be issued first.
  4. SSAs must be included for segments.
  5. Segment name must be specified for SSA
Question 8 Multiple Choice (Single Answer)

What must be completed before a GNP is issued with the database?

  1. All data must be sorted.
  2. All children must be grouped.
  3. The parent must be established
  4. All parents must be grouped.
  5. Finite control must be released.
Question 9 Multiple Choice (Single Answer)

Which one of the following is a DL/I CALL that retrieves a unique occurrence?

  1. PCB
  2. GN
  3. GNP
  4. GHU
  5. GHNP
Question 10 Multiple Choice (Single Answer)

Which of the following is not passed as parameter to the IMS cobol program from JCL

  1. Program name
  2. PSB name
  3. IMS mode of processing
  4. DBD name
Question 11 Multiple Choice (Single Answer)

Which of the following are not mentioned in DBD

  1. Number of sensitive segments
  2. Dataset
  3. Segment name
  4. Field name
Question 12 Multiple Choice (Single Answer)

Which procopt is used to read from a segment

  1. G
  2. R
  3. I
  4. D
  5. P
Question 13 Multiple Choice (Single Answer)
01 UNQUALIFIED-SSA.    
   05 UNIQUE-SSA-SEGMENT-NAME    PIC(8).    
   05 FILLER1                    PIC X VALUE '*-'. 

What does "–" in filler1 specify?

  1. Back to beginning of database
  2. Coding error
  3. No Command code used
  4. Concatenated command code
  5. Symantec error
Question 14 Multiple Choice (Single Answer)

WS area contains definition of all except

  1. SSA
  2. PCB
  3. Fuction code
  4. IO Area
Question 15 Multiple Choice (Single Answer)

IMS uses what kind of database management

  1. Heirarchical
  2. Network
  3. Relational
  4. Object oriented
Question 16 True/False

Segment is the smallest info that DLI can fetch

  1. True
  2. False
Question 17 Multiple Choice (Single Answer)

Command code for path call

  1. C
  2. P
  3. D
  4. K
  5. V
Question 18 Multiple Choice (Single Answer)

Command code used to set parentage

  1. P
  2. C
  3. D
  4. U
  5. V
Question 19 Multiple Choice (Single Answer)

Which of the following is invalid call.

  1. CALL 'CBLTDLI' USING DLI-ISRT
  2. CALL 'CBLTDLI' USING DLI-GHP
  3. CALL 'CBLTDLI' USING DLI-GU
  4. CALL 'CBLTDLI' USING DLI-GPH
  5. CALL 'CBLTDLI' USING DLI-REPL
Question 20 Multiple Choice (Single Answer)

CALL 'CBLTDLI' USING ?? i-o area pcb mask SSA Referring to the code above, what is the first parameter coded on the DL/I CALL?

  1. The return code area
  2. The programming language
  3. The segment length
  4. The access type
  5. The DL/I function code