Mainframe REXX, JCL, and DB2 Essentials

Test your knowledge of mainframe programming and utilities including REXX language features, JCL dataset management, DB2 database concepts, and mainframe system tools.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How many number of versions a generartion of a gdg can have at the max?

  1. 1
  2. 99
  3. 999
  4. No limit
Question 2 Multiple Choice (Single Answer)

Identify the mandatory info required to access uncatalogged dataset?

  1. space,dcb,unit,sol serial
  2. space,dcb,vol serial no
  3. Unit,vol serial no
  4. vol serial no
Question 3 Multiple Choice (Single Answer)

Which utility can be used to find volume serial info of a datset?

  1. IEBEGNER
  2. IEBGENER
  3. IDCAMS
  4. OPTION 1 AND 3
Question 4 Multiple Choice (Single Answer)

What is sqlcode -922 Error?

  1. Authorization faiure
  2. Load module not found
  3. Issu with Precompiller
  4. None
Question 5 Multiple Choice (Single Answer)

whats SDSF?

  1. Spool Display And Search Facility
  2. System Display And Search Facility
  3. option 1 AND 2
  4. option 1 or 2
Question 6 Multiple Choice (Single Answer)

Identify which one is more opt for DBRM?

  1. created by the DB2 precompiler and used in the bind process
  2. created by the cobol pre compiler and used in the bind process
  3. created by the cobol compiler and used in the bind process
  4. created by the DB2 compiler and used in the bind process
Question 7 Multiple Choice (Single Answer)

Identify which one is correct?

  1. Plan contains package and plan is executable
  2. Plan contains package and plan is not executable
  3. package contains only one dbrm as input and plan contains no of dbrms as input
  4. option 1 and 3
Question 8 Multiple Choice (Single Answer)

identify which one is correct?

  1. plan is obtained by binding DBRMs into packages
  2. plan is executable as it contains the acess path
  3. it is advantageous to use packages because it reduces the cost of bind
  4. All of the above
Question 9 Multiple Choice (Single Answer)

A REXX program (or REXX EXEC) called DEMO is stored in the partitioned dataset TBISUSR.REXXCRS.EXEC. Execution is possible...

  1. ... via the TSO command: EXEC 'TBISUSR.REXXCRS.EXEC(DEMO)' EXEC, without any
  2. ... only after allocation of the partitioned dataset TBISUSR.REXXCRS.EXEC to the DD
  3. ... via the TSO command: CALL 'TBISUSR.REXXCRS.EXEC(DEMO)', without any additional
  4. ... only after compilation to COBOL, and via the TSO command:
Question 10 Multiple Choice (Single Answer)

Indicate what is not correct in a REXX program.

  1. A REXX clause can be coded in uppercase, lowercase or mixed case.
  2. Multiple instructions can be coded on 1 line, as long as they are separated by a ','
  3. A REXX program should start with a comment clause /* REXX */
  4. Continuation of REXX instructions is achieved by using a ',' as a continuation indicator
Question 11 Multiple Choice (Single Answer)

Complete correctly: When defining a variable in REXX, one can use up to 250 characters to name the variable. The initial value will be...

  1. all blanks
  2. NULL value
  3. name of the variable in the same (mixed) case as the name.
  4. name of the variable in uppercase
Question 12 Multiple Choice (Single Answer)

Consider the following: name = 'John' number1 = number2 number2 = 5 Which of the following REXX expressions will generate an error?

  1. 10 / number1
  2. name || 'number2'
  3. number2 * 3
  4. name > number2
Question 13 Multiple Choice (Single Answer)

Consider the following clauses: var_1 = 2 var_2 = 3 IF var_1 = var_2 THEN var_3 = var_1 var_4 = var_2 var_5 = var_2 + var_1 ELSE var_3 = var_2 var_4 = var_1 var_5 = var_2 - var_1 SAY "result = " var_3 var_4 var_5 What will happen when this REXX is executed:

  1. output on the terminal: result = 2 3 5
  2. output on the terminal: result = 3 2 1
  3. output on the terminal: result = var_3 var_4 var_5
  4. the program will terminate with an error
Question 14 Multiple Choice (Single Answer)

Complete correctly: The EXIT clause ends...

  1. Ia loop unconditionally and continues with the next clause after the loop
  2. IF var_1 = var_2 THEN var_1 = var_1 + a loop and EXEC unconditionally, but doesn't return to the caller of the EXEC.
  3. a loop and EXEC unconditionally, returns to the caller of the EXEC and provides a return code.
  4. a loop and EXEC unconditionally, returns to the caller of the EXEC, but doesn't provide a return code.
Question 15 Multiple Choice (Single Answer)

To receive input from the screen, we use the command:

  1. READ
  2. PULL
  3. ACCEPT
  4. RECEIVE
Question 16 Multiple Choice (Single Answer)

Indicate the correct statement: REXX functions consist of a function name, immediately followed by its arguments coded between parentheses and separated by commas.

  1. This is only true if there are arguments, otherwise the parentheses must be excluded.
  2. This is also true if there are no arguments, but the parentheses can be omitted.
  3. This is also true if there are no arguments, the parentheses must be included.
  4. This is always true, since there are no functions without arguments.
Question 17 Multiple Choice (Single Answer)

Given that var_1 = 'Abc123', what is the result of DATATYPE(var_1,N)?

  1. '123'
  2. 'Abc123'
  3. 1
  4. 0
Question 18 Multiple Choice (Single Answer)

What is the result of TRUNC(12.3456,3)?

  1. 12.3
  2. 12.3000
  3. 12.346
  4. 12.345
Question 19 Multiple Choice (Single Answer)

Complete correctly: When calling a subroutine with the clause CALL 'SUBROUT1',...

  1. the external subroutine SUBROUT1 will be executed, bypassing any internal subroutines.
  2. the internal subroutine SUBROUT1 will be executed; external subroutines aren't called.
  3. the internal subroutines will be searched for SUBROUT1; only if there isn't an internal one, the external SUBROUT1 will be executed.
  4. an error will occur; subroutine names must never be coded between quotes.
Question 20 Multiple Choice (Single Answer)

How can an in-stream dataset be terminated

  1. //
  2. //*
  3. /*
  4. None of the above