u do 1 thing,
in job card u jus keep restart=step3 n giv cond parameter in all the steps in the jcl excluding step15 n step20...
so that u may get solution for this prob..
if it does not executes iam sorry ....
thanks n regards
To execute only desired steps in ur job.either u can use restar and cond at the same time or u can also do the same with Passing Control Information
sysin dd *
If maxcc=0 set maxcc=16 of stepname and so on
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
I think that your question is secondary about the reason that you pose to your job.
I most cases, I've been resolved, there was a initial variable that conditioned the execution of the job.
I'll try to explain myself better.
If you have in example a month or a variable that condition your job or simply the content of a file created by another job(it's impossible that the execution depend only from your mind..) you can use simply a rexx program or in other language that can result a condition for your structured jcl given by your variable(month or other...).
This is my idea:
//STEPMAIN EXEC PGM=IKJEFT01 /COBOL /OTHER...
//INPUT DD * /OR DSNAME.... ACCEPTED AS SYSIN...
//*YOU WILL RECEIVE A RC FROM YOUR PGM
//STEP2 EXEC PGM=PROG1,COND=(1,GT,STEPMAIN)
//STEP3 EXEC PGM=PROG2,COND=(2,GT,STEPMAIN)
//STEP4 EXEC PGM=PROG1,COND=(1,GT,STEPMAIN)