Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to sub jobs in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: how to sub jobs in JCL
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: 680
Location: NJ

PostPosted: Mon Nov 21, 2005 5:20 pm    Post subject:
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    Post subject: Re: how to sub jobs in JCL
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    Post subject:
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    Post subject: Re: how to sub jobs in JCL
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm
No new posts Predicting jobs which are about to re... kpanchabhai85 DFSORT/ICETOOL 4 Thu Jun 30, 2016 7:51 pm
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am
This topic is locked: you cannot edit posts or make replies. Jobs At HCL Technologies - Weekend Dr... mjadwani2785 Mainframe Jobs 0 Thu Feb 18, 2016 8:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us