Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

COND parameter - AND operation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Tue Jan 09, 2007 12:46 pm    Post subject: COND parameter - AND operation
Reply with quote

Hi All,
I have a production job which executes daily, this job executes a proc, which has around 15 steps: but this proc contains FTP step, which needs to be executed only during the last working day of the month. This is implemented using the logic which is given below:
Proc contains this sybolic parameter, which is included in the FTP step,

COND174='(87,NE)',

//step176 EXEC PGM=FTP,REGION=4096K,TIME=(0,15),COND=&COND174

this condition will be in effect in all the working days, execpt last work day, which is nullified by overriding the condition from the JCL on last work day, by removing the *

//* COND174=, REMOVE * LAST CYCLE OF MONTH

Now I have to include the FTP evaluation step and another step to abend the job if FTP fails..like this
Code:

//**********************************************************
//*  EVALUATION/PRINT OF FTP LOG FILE                                 
//*                                                                   
//****************************************************************** 
//*                                                                   
//step180 EXEC PGM=FILEAID,TIME=5,COND=&COND174                     
//*                                                                   
//DD01     DD  DSN=ftp log file name,DISP=SHR  ** FTP LOG FILE       
//*                                                                   
//DD02     DD  DSN=ftp log file name,DISP=SHR  ** FTP LOG FILE       
//*                                                                   
//DD01O    DD  DUMMY,DISP=SHR                      ** FTP EVALUATION 
//*                                                                   
//DD02O    DD  SYSOUT=A                            ** FTP PRINT         
//*                                                                     
//SYSIN    DD  DSN=FFA.CONTROL(abcde180),DISP=SHR                       
//*                                                                     
//SYSOUT   DD  SYSOUT=A                                                 
//SYSPRINT DD  SYSOUT=A                                                 
//SYSUDUMP DD  SYSOUT=(A,,DUMP),HOLD=YES                               
//*                                                                     
//*                                                                     
//******************************************************************   
//******************************************************************   
//*                                                                     
//*  ABEND U0020 IF BAD RETURN CODE FROM PRIOR (FTP EVALUATION) STEP   
//*                                                                     
//******************************************************************   
//*                                                                     
//step185 EXEC PGM=STEPDUMP,COND=(&COND174,(1,GE,step180)),TIME=1,               
//         PARM=('0020'),REGION=512K                                   
//*                                                                     
//SYSOUT   DD  SYSOUT=A                                         
//SYSPRINT DD  SYSOUT=A                                         
//SYSUDUMP DD  SYSOUT=(A,,DUMP),HOLD=YES                         
//*                                                             


These steps are also executed only during month end...
but in the step185, parameter COND=(&COND174,(1,GE,step180))
will become false if any one condition is false and executes the abend step, i.e if COND174 is nullified, the job will abend even though ,(1,GE,step180) condition is true, which is an OR operation, I want to bypass this step until both conditions yields FALSE result, please advise on how we can do this.

venkat
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jan 15, 2007 7:10 am    Post subject:
Reply with quote

Hello,

Do you have a resolution for this?

If not, you might consider changing the original job to conditionally submit the FTP processing as a new job via the internal reader. The current method of detecting month-end would remain the same.

The current FTP step would become an IEBGENER step to submit the validation, ftp, and abend steps as the "new" job.

While using the internal reader is quite handy, it is not acceptable in all production environments. I'd recommend talking with your scheduling people to see if the internal reader is ok or if the "new" job should be automatically run at month via your scheduling software - if installed.
Back to top
View user's profile Send private message
Mfprogrammer

New User


Joined: 24 May 2006
Posts: 6

PostPosted: Fri Jan 19, 2007 2:47 pm    Post subject: Re: COND parameter - AND operation
Reply with quote

Hi,
Instead of COND codes, can you not use 'IF' statement?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us