IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COND parameter - AND operation


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Mon Jan 15, 2007 7:10 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
Search our Forums:

Back to Top