MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
shash_modi Beginner Joined: 22 Apr 2008 Posts: 26 Topics: 9 Location: Mumbai
Posted: Mon May 23, 2011 7:55 am Post subject: Overriding Cond from JCL
My JCL looks like as below:
-------------------------------
Code:
//N11111S JOB ACCOUNT,'VSAM',CLASS=A,MSGCLASS=X,
// NOTIFY=&SYSUID,MSGLEVEL=(1,1)
//*
//JCLLIB JCLLIB ORDER=N302475.MODI.PROC
//VSAMPROC EXEC VSAMPROC,
// COND.STEP020=(99,NE)
//*
When look at the jcl after expanding, it does not override the condition of step020 with the one I have given in JCL. Any reason why it is not doing that.
JCL after expanding looks like as below: Code:
----------------------------------------------
//N1111S JOB ACCOUNT,'VSAM',CLASS=A,MSGCLASS=X,
// NOTIFY=N11115,MSGLEVEL=(1,1)
//*
//JCLLIB JCLLIB ORDER=N302475.MODI.PROC
//VSAMPROC EXEC VSAMPROC,
// COND.STEP020=(99,NE)
//STEP010.DDIN DD DSN=N302475.MODI.PS1,DISP=SHR
P1//VSAMPROC PROC
P1//*
P1//*********************************************************
P1//* INSERTING THE RECORD IN KSDS FILE.
P1//*********************************************************
P1//STEP010 EXEC PGM=IDCAMS
P1//DDIN DD DSN=N302475.MODI.PS,DISP=SHR
P1//DDOUT DD DSN=N302475.TEST.VSAM,DISP=MOD
P1//SYSIN DD DSN=N302475.MODI.PARMS(VSAM1),DISP=SHR
----+----1----+----2----+----3----+----4----+----5----+----6----+---
REPRO INFILE(DDIN) OUTFILE(DDOUT)
P1//SYSPRINT DD SYSOUT=*
P1//*
P1//*********************************************************
P1//* COPYING THE DATA FROM VSAM TO NORMAL PS FILE.
P1//*********************************************************
P1//STEP020 EXEC PGM=IDCAMS,COND=(00,NE)
P1//DDIN DD DSN=N302475.TEST.VSAM,DISP=SHR
P1//DDOUT DD DSN=N302475.MODI.VSAM.OUT,DISP=SHR
P1//SYSIN DD DSN=N302475.MODI.PARMS(VSAM2),DISP=SHR
----+----1----+----2----+----3----+----4----+----5----+----6----+---
REPRO INFILE(DDIN) OUTFILE(DDOUT)
P1//SYSPRINT DD SYSOUT=*
P1//*
P1//*********************************************************
P1//* TAKING GDG BACKUP OF THE PS FILE.
P1//*********************************************************
P1//STEP030 EXEC PGM=IEBGENER,COND=(00,NE)
P1//SYSUT1 DD DSN=N302475.MODI.VSAM.OUT,DISP=SHR
P1//SYSUT2 DD DSN=N302475.MODI.VSAMOUT.GDG(+1),
P1// DISP=(NEW,CATLG,DELETE),
P1// UNIT=SYSDA,
P1// SPACE=(TRK,5),
P1// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800,DSORG=PS)
P1//SYSIN DD DUMMY
P1//SYSPRINT DD SYSOUT=*
P1//*
Back to top
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Mon May 23, 2011 12:05 pm Post subject:
shash_modi ,
Are you expecting that it would show in the JCL expansion? If so then you are mistaken as to how the symbolics work vs overrides.
The cond code will be taken into consideration during run time and it will be validated. Run the Job and check it
Kolusu
Back to top
shash_modi Beginner Joined: 22 Apr 2008 Posts: 26 Topics: 9 Location: Mumbai
Posted: Mon May 23, 2011 12:45 pm Post subject:
kolusu wrote: shash_modi ,
Are you expecting that it would show in the JCL expansion? If so then you are mistaken as to how the symbolics work vs overrides.
The cond code will be taken into consideration during run time and it will be validated. Run the Job and check it
Kolusu
Hi Kolusu,
I did but it not working, as in that step is running.
Thanks
Shashank
Back to top
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum