MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Flow of Step Execution in a Job

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Fri Aug 22, 2008 3:18 pm    Post subject: Flow of Step Execution in a Job Reply with quote

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
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Aug 22, 2008 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Fri Aug 22, 2008 8:15 pm    Post subject: Reply with quote

kolusu wrote:
the new submitted job will wait until your original job is completed and then kick off.

Kolusu


Wrong!
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sat Aug 23, 2008 4:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group