View previous topic :: View next topic |
Author |
Message |
arvibala Beginner

Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Fri Aug 22, 2008 3:18 pm Post subject: Flow of Step Execution in a Job |
|
|
Hi,
I have a question regarding flow of Triggered Jobs.
Code: |
//STEP1 EXEC PGM=TEST1
//*
//STEP2 EXEC PGM=TEST1
//*
//STEP3 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=TRIGGER.NXTJOB.JCL,
// DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR),
// DCB=(RECFM=F,LRECL=80,BLKSIZE=80)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//*
//STEP4 EXEC PGM=TEST1
//*
|
Here STEP1 executes and then STEP2 then we are triggering TRIGGER.NXTJOB.JCL internally under STEP3.
My question is
1. Will STEP4 execute only if TRIGGER.NXTJOB.JCL executes fine without any abend?
Cheers, _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Aug 22, 2008 5:18 pm Post subject: |
|
|
arvibala wrote: | 1. Will STEP4 execute only if TRIGGER.NXTJOB.JCL executes fine without any abend? |
arvibala,
NO your step4 will execute irrespective of the job submitted by step3. Moreover even though step3 submitted the job. the new submitted job will wait until your original job is completed and then kick off.
Kolusu |
|
Back to top |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Fri Aug 22, 2008 8:15 pm Post subject: |
|
|
kolusu wrote: | the new submitted job will wait until your original job is completed and then kick off.
Kolusu |
Wrong! |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Sat Aug 23, 2008 4:40 am Post subject: |
|
|
The submitted job would only be delayed if it has the same jobname as the submitter job. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
|
|