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

Problem in RC check


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

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Wed Aug 13, 2008 12:45 pm
Reply with quote

I have a JCL calling 2 Procs total with 150 Steps
First PROC 110 steps
In 103 Step and 105th step its copying a 2 file to take a backup.

I need to Refer these 103 and 105th steps of FIRST proc in my second and if successful completed then I need to continue to do the further processing.

but the problem is if any steps added in between then need to change the second proc also.

the Input file to take the backup can have empty also.. so the backup also can be empty..

how to make this in simpler way...?
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 Aug 13, 2008 1:16 pm
Reply with quote

Hi,

- For empty file, you can code a step using IDCAMS/SORT, based upon the RC of this step you can EXECute the "back-up" step, with COND.

Quote:
but the problem is if any steps added in between then need to change the second proc also.

- Do you add "other" steps just after 103 ? If so, probably giving a different name to this step or keeping the step number big enough so that it doesn't need any cahange even if some other step is sandwiched, might help..
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 Aug 13, 2008 9:49 pm
Reply with quote

Hello,

A re-design would probably be a good idea.

A new implementation using the scheduling system my be more servicable and allow reducing the huge number of steps to something more easily understandable and maintainable.
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 SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts How to check whether who renamed the ... JCL & VSAM 3
No new posts No ++JCLIN, APPLY CHECK job JCL & VSAM 1
Search our Forums:

Back to Top