IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to sub jobs in JCL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
crm

New User


Joined: 14 Nov 2005
Posts: 25

PostPosted: Mon Nov 21, 2005 1:14 pm
Reply with quote

hai

in my interview it was asked that

if i have 5jobs.after completion of job1,how can i submit job2.

if anyone can help it out
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Mon Nov 21, 2005 5:20 pm
Reply with quote

hi frnd,
i dont think there is any JCL to do it so.. there is a tool named JOB SCHEDULER. it is having the option of giving the order of the job to get executed.

Any more solutions ..plz post it. let me know.
Back to top
View user's profile Send private message
Ramya A

Active User


Joined: 26 Jul 2004
Posts: 104

PostPosted: Tue Nov 22, 2005 1:43 am
Reply with quote

Hi,

You can use the below step at the end of a JCL to submit another job from that JCL:

//STEP1 EXEC PGM=IEBGENER,COND=(4,LT)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=Next.Job.PDS(Nextjob),DISP=SHR
//SYSUT2 DD SYSOUT=(,INTRDR)
//SYSIN DD DUMMY
//*

'N' number of above steps could be given to submit 'n' number of jobs in parallel.

Correct me if I'm wrong...

Regards,
Ramya
Back to top
View user's profile Send private message
pkmainframe

New User


Joined: 14 Jun 2005
Posts: 16
Location: India

PostPosted: Tue Nov 22, 2005 5:47 pm
Reply with quote

Hi Crm,

one of the alternate way of running the 5 jobs is when after submitting the job one, when your submitting the next job you can use the below card after
/*AFTER <previous jobname>
in ur job subsequentely for the 3rd job you can put this statement with the
second job name.

try out this , since AFTER is installation dependent, check oout does ur shop has this other wise it will through you an error

Tx
Kumar
Back to top
View user's profile Send private message
crm

New User


Joined: 14 Nov 2005
Posts: 25

PostPosted: Tue Nov 22, 2005 6:25 pm
Reply with quote

hai pkmainframe

pls can u give me the coding .it will be very clear to me.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top