View previous topic :: View next topic
|
Author |
Message |
Rameshs
New User
Joined: 15 Jun 2005 Posts: 53 Location: India, Chennai
|
|
|
|
A job can maximum of 255 steps. So if we want to execute more than 255 steps.
can we able to trigger a jcl from another jcl ? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Sure, you've got few methods:
1 - Use batch TSO (IKJEFT01) with the SUBMIT command.
2 - Call REXX from a job to submit other jobs.
3 - Use other programming language to submit job from a job (like COBOL, NATURAL, Assembler etc.).
4 - Make your last step an IEBGENER that its input will be the next job, and the output is allocated to INTRDR.
O. |
|
Back to top |
|
|
KS
New User
Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
Hi,
Already discussed in the forum.
To execute more than 255 steps : We need to split jcl into two jcls , at the end of the first jcl check the condition code and if successful you can initiate the second jcl.
Thanks,
KS |
|
Back to top |
|
|
KS
New User
Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
Make your last step an IEBGENER that its input will be the next job, and the output is allocated to INTRDR?
Check for the condition code of the last step in JCL.
IF RC = O THEN do the following .
//STEP050 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=SYSPDA.JCLLIB(JCL2),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD DUMMY
Here SYSPDA.JCLLIB is the dataset where ur second JCL resides.
INTRDR is a special SYSOUT data set that other programs can use to submit jobs, control statements. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
INTRDR is a program, not dataset ...
O. |
|
Back to top |
|
|
KS
New User
Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
I agree its not a dataset..but its not a proper program like cobol too.
Its neither a dataset nor a program.
Kindly verify by putting Quick watch (qw INTRDR) in ISPF.Its mentioned as a dataset.
Thanks,
KS |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
In many of the IBM manuals, they also refer to sysout as being a dataset, so I guess calling it that is correct. Confusing, maybe. |
|
Back to top |
|
|
Rameshs
New User
Joined: 15 Jun 2005 Posts: 53 Location: India, Chennai
|
|
|
|
All methods r working fine.
Thanks kuttisatha and superk for your valuable informations.
How to submit the job from cobol program ?.
Thanks,
Ramesh |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
See the above post from KuttiSatha. Use the same method. |
|
Back to top |
|
|
Rameshs
New User
Joined: 15 Jun 2005 Posts: 53 Location: India, Chennai
|
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
hy Rameshs,
you really have such a job,
or you just want to try out the limits of jes?
a job with 255 steps is simply not maintainable,
therefore my tip: don't do it!
while using this you might get other limitation problems...
martin9 |
|
Back to top |
|
|
|