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
 

 

PRoblem in setting RC using IDCAMS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: PRoblem in setting RC using IDCAMS
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: 2435
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 14, 2010 2:20 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 14, 2010 2:29 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 15, 2010 7:39 pm    Post subject:
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

Site Director


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

PostPosted: Wed Dec 15, 2010 9:15 pm    Post subject:
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    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 Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm


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