venktv
New User
Joined: 29 Mar 2006 Posts: 59 Location: Montreal
|
|
|
|
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 |
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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. |
|