Mainframe Programming: COBOL, REXX, TSO, INSYNC, and DB2

Test your knowledge of mainframe technologies including COBOL programming, REXX scripting, TSO/REXX stack operations, INSYNC file comparison, and DB2 database concepts.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is a lock in DB2?

  1. A lock is the mechanism that controls access to rows and coloumns
  2. A lock is the mechanism that controls access to table views
  3. A lock is the mechanism that controls access to data pages and table spaces.
  4. None of the Above
Question 2 Multiple Choice (Multiple Answers)

What are all the file organizations that INSYNC can read and write.

  1. HFS files
  2. QSAM files
  3. VSAM files
  4. None of the above
Question 3 Multiple Choice (Multiple Answers)

Syntax for "CRTDATE"

  1. CRTDATE=(date)
  2. CRTDATE=(date1,date2)
  3. All the above
  4. None of the above
Question 4 Multiple Choice (Single Answer)

Syntax for "DYNAMICACB#"

  1. DYNAMICACB#
  2. DYNAMICACB#=number
  3. DYNAMICACB#=YES
  4. None of above
Question 5 True/False

To exclude the RDW we can use "RDW=ON" in the control card

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

Which Batch Keyword is used to determine how Unformatted comparison reports should display

  1. PRINT
  2. PRINTCASE
  3. PRINTHORIZ
  4. PRINTMODE
Question 7 Multiple Choice (Single Answer)

The --------- batch keyword controls whether excluded fields in select tables are reported

  1. SEARCH
  2. SHADOW
  3. STRIP
  4. FIND
Question 8 Multiple Choice (Single Answer)

REXX means

  1. Restructure EXtended eXecutor language
  2. Restructured EXtending eXecutor language
  3. Restructured EXtended eXecutor language
  4. Restructured EXtended eXecution language
Question 9 Multiple Choice (Single Answer)

When the language processor transfers control to another routine or another part of the exec, it sets the ----special variable to the line number from which the transfer occurred.

  1. SIG
  2. SIGL
  3. SIL
  4. SIGN
Question 10 Multiple Choice (Single Answer)

----- Causes REXX to stop executing the current DO-END loop

  1. Exit
  2. Finish
  3. End
  4. Leave
Question 11 Multiple Choice (Single Answer)

/REXX/ Do forever Say ‘Enter the code :’ Pull code If code = ‘BYE’ then Leave; end Exit Based on the above REXX, what is true?

  1. The above exec will prompt the user for a code until the user enters the code ‘BYE’
  2. The above exec will prompt the user for a code until the user enters the code ‘EXIT’.
  3. Gives Error while Executing
  4. The above exec will prompt the user for a code until the user enters the code ‘END’.
Question 12 Multiple Choice (Single Answer)

What is the result for the command "SUBSTR('MVS',1,5)"

  1. 'MVS'
  2. 'MVS '
  3. ' MVS'
  4. 'MVSSS'
Question 13 Multiple Choice (Single Answer)

what the Command "“DROPBUF 0” will do?

  1. deletes buffer in the stack
  2. deletes buffer and all elements of stack
  3. deletes elements of stack
  4. All the above
Question 14 Multiple Choice (Single Answer)

"MAKEBUF" "MAKEBUF" "DROPBUF" "MAKEBUF" "QBUF" What QBUF will return?

  1. Returns 1
  2. Returns 3
  3. Returns 2
  4. Returns 0
Question 15 Multiple Choice (Single Answer)

"MAKEBUF" Push ‘TCS’ Push ‘TATA’ Push ‘CONSULTANCY’ Push ‘SERVICES’ "QELEM" "DROPBUF" "QELEM" What will be returned by "QELEM" in step 6 and 8 ?

  1. 4,4
  2. 4,0
  3. 3,3
  4. 3,0
Question 16 Multiple Choice (Single Answer)

"QSTACK" "NEWSTACK" "NEWSTACK" "QSTACK" What will the last "QSTACK" will return.

  1. Returns 0
  2. Returns 1
  3. Returns 2
  4. Returns 3
Question 17 Multiple Choice (Single Answer)

What will a variable in COBOL contain if it is not initialized?

  1. Will contain zeroes if numeric and spaces if alphabetic or alphanumeric
  2. Will contain spaces for all variables
  3. Will contain an undefined value
  4. None of the above
Question 18 Multiple Choice (Single Answer)

What is a 66 level in COBOL used for?

  1. Elementary level item
  2. Condition names
  3. Initialize
  4. Renames
Question 19 Multiple Choice (Single Answer)

What is a 77 level in COBOL used for?

  1. Elementary level item
  2. For condition names
  3. Initialize
  4. Renames
Question 20 True/False

Is this variable definition correct?

  1. True
  2. False