Consider the following: // SET GROUP=TBIS,DIV=USR,SUBJ=JCL,TYPE=DATA,NMBR=1 Which of the following structures containing symbolic parameters will result in: TBISUSR.JCLCRS.DATA1?

  1. &GROUP&DIV.&SUBJCRS.&TYPE&NMBR

  2. &GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR

  3. &GROUP.&DIV..&SUBJ.CRS.&TYPE.&NMBR.

  4. &GROUP.&DIV..&SUBJ.CRS..&TYPE.&NMBR.


Correct Option: B,C

AI Explanation

To answer this question, we need to understand how symbolic parameters work in JCL (Job Control Language).

In JCL, symbolic parameters are placeholders that can be replaced with actual values during job execution. The structure of symbolic parameters is typically denoted by an ampersand (&) followed by the parameter name.

Let's go through each option to determine which ones will result in the desired output of "TBISUSR.JCLCRS.DATA1":

Option A) &GROUP&DIV.&SUBJCRS.&TYPE&NMBR This option will result in "TBISUSRJCLCRSDATANMBR" because there are no period (.) separators between the symbolic parameters.

Option B) &GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR This option will result in "TBISUSR.JCLCRS.DATA1" because the periods (.) are correctly placed to separate the symbolic parameters.

Option C) &GROUP.&DIV..&SUBJ.CRS.&TYPE.&NMBR. This option will result in "TBIS.USR.JCLCRS..DATA.1." because there are extra periods (.) between the symbolic parameters.

Option D) &GROUP.&DIV..&SUBJ.CRS..&TYPE.&NMBR. This option will result in "TBIS.USR.JCLCRS.DATA.1." because there are extra periods (.) between the symbolic parameters.

Therefore, the correct answers are B and C because they will result in the desired output of "TBISUSR.JCLCRS.DATA1".

Find more quizzes: