Multiple choice technology mainframe

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.

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

JCL symbolic parameters are resolved by substituting &name with values. The SET statement defines GROUP=TBIS, DIV=USR, SUBJ=JCL, TYPE=DATA, NMBR=1. Option B (&GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR) resolves: TBISUSR (no dot between DIV and SUBJ), then .CRS literal, then DATA1 (no dot between TYPE and NMBR) = TBISUSR.JCLCRS.DATA1. Option C (&GROUP.&DIV..&SUBJ.CRS.&TYPE.&NMBR.) adds dots: TBIS.USR.JCLCRS.DATA1. - the trailing dot after NMBR is typically trimmed or ignored. Both produce equivalent results in JCL resolution.