Some parameters have sub-parameters. These can be both positional or keyword sub-parameters. Suppose TU00001 is the programmer’s name, ATUT000 is the programmer's account number and it is a default value. Given this information, which statements are correct:

  1. //TU00001T JOB (ATUT000,,,,,,,,),TU00001,CLASS=7,MSGCLASS=X

  2. //TU00001T JOB (ATUT000),’TU00001’,CLASS=7,MSGCLASS=X

  3. //TU00001T JOB TU00001,’(ATUT000)’,CLASS=7,MSGCLASS=X

  4. //TU00001T JOB ,(ATUT000),CLASS=7,MSGCLASS=X


Correct Option: A,B

AI Explanation

To answer this question, we need to understand the format and syntax of JCL (Job Control Language) statements in mainframe programming.

Let's go through each option to understand why it is correct or incorrect:

Option A) //TU00001T JOB (ATUT000,,,,,,,,),TU00001,CLASS=7,MSGCLASS=X This option is correct. The JOB statement specifies the job name and job parameters. In this case, the programmer's account number (ATUT000) is enclosed in parentheses and placed within the JOB statement. The programmer's name (TU00001) is specified as a positional parameter. The CLASS and MSGCLASS parameters are also provided.

Option B) //TU00001T JOB (ATUT000),’TU00001’,CLASS=7,MSGCLASS=X This option is correct. The JOB statement is similar to option A, with the programmer's account number enclosed in parentheses. The programmer's name is specified as a keyword parameter using single quotes. The CLASS and MSGCLASS parameters are also provided.

Option C) //TU00001T JOB TU00001,’(ATUT000)’,CLASS=7,MSGCLASS=X This option is incorrect. The programmer's name is specified as a positional parameter, but the programmer's account number is specified as a keyword parameter enclosed in single quotes. The correct syntax for specifying sub-parameters is to enclose them in parentheses, as shown in options A and B.

Option D) //TU00001T JOB ,(ATUT000),CLASS=7,MSGCLASS=X This option is incorrect. The programmer's name is missing, and the programmer's account number is specified as a keyword parameter without enclosing parentheses. The correct syntax for specifying sub-parameters is to enclose them in parentheses, as shown in options A and B.

The correct answers are A and B. These options correctly specify the programmer's name and account number as sub-parameters within the JOB statement, using the appropriate syntax.

Find more quizzes: