Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

JCL & VSAM :: RE: JCL MULTIPLE STEP EXECUTION QUERY

$
0
0
Author: steve-myers
Posted: Sat Jul 30, 2016 5:45 pm (GMT 5.5)

You are laboring under two falsehoods.
  • IEFBR14 always terminates with RC = 0. There is no concept of “no return code.” All programs end with a return code.
  • This JCL will fail if the system cannot allocate or delete MY.DS.
Code:
//S1      EXEC PGM=IEFBR14
//S1DS     DD  DISP=(MOD,DELETE),UNIT=SYSALLDA,SPACE=(TRK,0),
//             DSN=MY.DS
//S2      EXEC PGM=IEFBR14
//S2DS     DD  DISP=(,CATLG),UNIT=UNITDEV,SPACE=(TRK,(100,100)),
//             DCB=(RECFM=FB,LRECL=10,BLKSIZE=1000),DSN=*.S1.S1DS
As written here, it does not matter if MY.DS exists before the job is run. See the discussion of DISP=MOD in the JCL Reference manual for your z/OS release.
  • The JCL in S2 does not specify RLSE. That's because RLSE is not a data set attribute; it only applies to the step and DD statement that populates the data set; S2 does not populate the data set.


  • Viewing all articles
    Browse latest Browse all 8500

    Trending Articles