Tag: mainframe

Questions Related to mainframe

When a RETURN clause is used in a subroutine, a value can be passed back to the calling EXEC. Which statements are correct?

  1. This value must be numeric.

  2. This value can be alphanumeric.

  3. This value is stored in the system variable RC.

  4. This value is stored in the system variable RCODE.


Correct Option: B

If I want to fill the variable DAY with '01', the variable MONTH with 'January' and the variable YEAR with '2009', which would be a correct way to do so, if the data '01 January 2009' is read from the input screen?

  1. PARSE PULL DAY MONTH YEAR

  2. PULL DATE followed by PARSE VALUE DATE DAY MONTH YEAR

  3. PULL DATE followed by PARSE VALUE DATE WITH DAY MONTH YEAR

  4. PULL DATE followed by PARSE VAR DATE DAY MONTH YEAR


Correct Option: B

What is no prerequisite for using the EXECIO command?

  1. The dataset must be sequential or a member of a partitioned dataset.

  2. The dataset must be allocated to a file name or DD name.

  3. The dataset must be exclusively enqueued (DISP=OLD or NEW).

  4. TSO or MVS environment must be active.


Correct Option: C

Which of the following belongs to JES2

  1. XMIT

  2. XEQ

  3. ROUTEXEQ

  4. OPERATOR


Correct Option: A,B

Improper handling of which parameter leads to abend S322

  1. CLASS

  2. TIME

  3. REGION

  4. JOB


Correct Option: B