MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Overriding Cond from JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
shash_modi
Beginner


Joined: 22 Apr 2008
Posts: 26
Topics: 9
Location: Mumbai

PostPosted: Mon May 23, 2011 7:55 am    Post subject: Overriding Cond from JCL Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Mon May 23, 2011 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
shash_modi
Beginner


Joined: 22 Apr 2008
Posts: 26
Topics: 9
Location: Mumbai

PostPosted: Mon May 23, 2011 12:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Mon May 23, 2011 1:17 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group