Override DD-statements of an in-stream procedure

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
aldencarr123
Posts: 6
Joined: Wed Nov 11, 2020 4:14 am
Skillset: i can code some JCL data set using different utilities
Referer: from internet

Override DD-statements of an in-stream procedure

Postby aldencarr123 » Sun Nov 15, 2020 3:40 am

I received a JCL error after submitting this job can anyone explain why?

Code: Select all

//TSOZA48 JOB 3ES10G10000012,'TSOZA48',MSGCLASS=X,MSGLEVEL=(1,1),
// NOTIFY=TSOZA48,CLASS=A,REGION=2M
//********************************************************************
//* JOB SUBMITTED FROM userid.ES10.CNTL(LAB5#31) ***
//* DOC: Override DD-Statements on an Instream Procedure ***
//********************************************************************
//COMP PROC
//**********************************************************
//********* MAKE BACKUP
//**********************************************************
//S1 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=userid.ES10.CNTL
//SYSUT2 DD DISP=(,CATLG),DSN=userid.ES10.BACK,
// LIKE=userid.ES10.CNTL
//SYSIN DD DUMMY
//IFOK1 IF (S1.RC=0) THEN
//**********************************************************
//********* COMPRESS DATA SET
//**********************************************************
//S2 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=userid.ES10.CNTL
//SYSUT2 DD DISP=OLD,DSN=userid.ES10.CNTL
//SYSIN DD DUMMY
//IFOKEND1 ENDIF
//IFOK2 IF (S2.RC=0) THEN
//**********************************************************
//********* COMPRESS SUCCESSFUL, DELETE BACKUP
//**********************************************************
//S3 EXEC PGM=IEFBR14
//DD1 DD DISP=(OLD,DELETE),DSN=userid.ES10.BACK
//IFOKEND2 ENDIF
// PEND
//FINAL EXEC COMP
//S1.SYSUT1 DD DISP=SHR,DSN=TSOZA60.COPY.CNTL
//S1.SYSUT2 DD DISP=(,CATLG),DSN=TSOZA60.ES10.BACK,
// LIKE=TSOZA60.COPY.CNTL
//S2.SYSUT1 DD DISP=SHR,DSN=TSOZA60.COPY.CNTL
//S2.SYSUT2 DD DISP=OLD,DSN=TSOZA60.COPY.CNTL


Coded for you - last time

User avatar
prino
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
Referer: Google
Location: Vilnius, Lithuania
Contact:

Re: Override DD-statements of an in-stream procedure

Postby prino » Sun Nov 15, 2020 4:23 am

And we have to guess the error?

And

Code: Select all

//IFOK2 IF (S2.RC=0) THEN
will very obviously be not very useful if S2 is not executed when S1 falls over.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy

User avatar
sergeyken
Posts: 458
Joined: Wed Jul 24, 2019 10:12 pm
Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
Referer: Internet search

Re: Override DD-statements of an in-stream procedure

Postby sergeyken » Sun Nov 15, 2020 6:25 am

My car doesn’t drive after I press Start button can anyone explain why?
Javas and Pythons come and go, but JCL and SORT stay forever.

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: Override DD-statements of an in-stream procedure

Postby NicC » Sun Nov 15, 2020 5:20 pm

In other words: What was the JCL error? Show us the messages. Make it easy for us - some of us are busy and do not have much time to spare to help. Using the code tags when presenting code, data, control statements and reports helps people see the problem quicker so use them!
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

Re: Override DD-statements of an in-stream procedure

Postby willy jensen » Mon Nov 16, 2020 1:53 pm

the datasetnames in the instream proc are in lowercase. they are checked even though they are overridden.


  • Similar Topics
    Replies
    Views
    Last post