View previous topic :: View next topic
|
Author |
Message |
shrivatsa Warnings : 1 Active User
Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|