Overriding Cond from JCL
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Job Control Language(JCL)

#1: Overriding Cond from JCL Author: shash_modiLocation: Mumbai PostPosted: Mon May 23, 2011 7:55 am
    —
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//*

#2:  Author: kolusuLocation: San Jose PostPosted: Mon May 23, 2011 12:05 pm
    —
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

#3:  Author: shash_modiLocation: Mumbai PostPosted: Mon May 23, 2011 12:45 pm
    —
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

#4:  Author: kolusuLocation: San Jose PostPosted: Mon May 23, 2011 1:17 pm
    —
shash_modi wrote:

Hi Kolusu,

I did but it not working, as in that step is running.

Thanks
Shashank


Shashank,

May be you need to brush up your basics a little bit. Read the NOTE under the first table 16-1 and you will know why your step ran.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B680/16.5.7?



MVSFORUMS.com -> Job Control Language(JCL)


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group