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

PRoblem in setting RC using IDCAMS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Aravinds

New User


Joined: 14 Dec 2010
Posts: 1
Location: Mumbai

PostPosted: Tue Dec 14, 2010 2:13 pm
Reply with quote

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.????? icon_rolleyes.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 14, 2010 2:20 pm
Reply with quote

Show the output of this job.

Idcams has nothing to do with the rc of the first step.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 14, 2010 2:29 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Dec 15, 2010 7:39 pm
Reply with quote

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 icon_smile.gif).

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Dec 15, 2010 9:15 pm
Reply with quote

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
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts Change Default Scroll Setting TSO/ISPF 1
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
Search our Forums:

Back to Top