View previous topic :: View next topic
|
Author |
Message |
crm
New User
Joined: 14 Nov 2005 Posts: 25
|
|
|
|
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 |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
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 |
|
|
Ramya A
Active User
Joined: 26 Jul 2004 Posts: 104
|
|
|
|
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 |
|
|
pkmainframe
New User
Joined: 14 Jun 2005 Posts: 16 Location: India
|
|
|
|
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 |
|
|
crm
New User
Joined: 14 Nov 2005 Posts: 25
|
|
|
|
hai pkmainframe
pls can u give me the coding .it will be very clear to me. |
|
Back to top |
|
|
|