View previous topic :: View next topic
|
Author |
Message |
Aravinds
New User
Joined: 14 Dec 2010 Posts: 1 Location: Mumbai
|
|
|
|
Hello,
I have previously searched this forum and tried few things but in my case I am facing a problem, ......
Requirement:
I have a proc which has 3 steps, 1st step will return RC 1808(related to time out in FTP) at times, but even in that case, I want to execute the step 2 and 3 with out interuption.
* I have tried the following, to set the MaxCC to zero using IDCAMS
//STEP01
//...My FTP JCL
//
//*
//STEP02 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTC ENT ('DSNAME')
IF MAXCC=1808 THEN DO
SET MAXCC = 0
END
//*
//STEP03
//....
//*
*but after the 1st step returns RC1808, its not reaching upto the IDCAMS step(where I will be setting the MAXCC to 0) .It says, "STEP WAS NOT RUN BECAUSE OF CONDITION CODES"
what can be done for this.????? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Show the output of this job.
Idcams has nothing to do with the rc of the first step. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DING DONG - Wake up call -
You CAN NOT alter the return code of a previous step
Where is the CC checking in the JCL. Although you haven't bothered to show us, is it in the job card. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
What you're really asking is - can I RESET the RC of a job-step. And the answer is - You can change RC only in an IDCAMS step and only for THAT step. You can't reset a RC of another step from an IDCAMS step, Period. (Thanks Robert, loved this word ).
You said there are 3-steps in your Job - but if the second step is IDCAMS step, as you show - then that is of no use actually; so you are left with only two-steps -- if that is the case, possiblly there is a solution using COND parameter. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Quote: |
I have a proc which has 3 steps, 1st step will return RC 1808(related to time out in FTP) at times, but even in that case, I want to execute the step 2 and 3 with out interuption. |
If you want the step(s) following the FTP to execute regardless of the RC of the FTP step, simply remove the condition code test from the JOB statement or any EXEC statement(s). Also, do not specify termination via the scheduler.
With no condition code testing, the steps should all run unless there is an actual abend.
Possibly there is something i am missing? |
|
Back to top |
|
|
|