Page 1 of 1

Exec statement in jcl

PostPosted: Thu Jan 07, 2010 10:15 pm
by kranthi.kumarmca22
Hi ALL,
I am fresher to mainframes.
I have a doubt.
If we are doing multiple jobs in jcl, is it required to write two exec statements in the jcl

Re: Exec statement in jcl

PostPosted: Thu Jan 07, 2010 10:18 pm
by Bill Dennis
Proper terminology:
If you are doing multiple STEPs in one JOB then you have an EXEC stmnt for each step.

Re: Exec statement in jcl

PostPosted: Thu Jan 28, 2010 7:31 pm
by Arun A
hi

in jcl , you can have 255 JOB STEPS. in each job step yo should have the EXEC stmt.

Re: Exec statement in jcl

PostPosted: Thu Jan 28, 2010 8:19 pm
by Robert Sample
Is there a question in here somewhere?

Re: Exec statement in jcl

PostPosted: Mon Feb 08, 2010 12:45 pm
by saumitra5552001
You can use only one JOB in 1 JCL .
To execute several steps we can use several exec statements in the JOB.
MAx 255 EXECS

Re: Exec statement in jcl

PostPosted: Mon Feb 08, 2010 12:57 pm
by saumitra5552001
Sorry !!! I beg Your Pardon You Can code Multiple JOBS in a single JCL .
For Each Job you can have 255 Steps max.
If you have two steps write Two EXEC's.

Re: Exec statement in jcl

PostPosted: Tue Feb 16, 2010 3:44 pm
by venki3
Hi Saumitra,
Could you please tell how do we code multiple jobs in a single JCL?
I was aware of the fact that we can have only one job card per JCL.

Thanks,
Venkateswari

Re: Exec statement in jcl

PostPosted: Tue Feb 16, 2010 4:47 pm
by Robert Sample
What does "single JCL" mean? If you are referring to a sequential file or a member of a PDS, you may have any number of jobs in that file. When they are submitted, each job is treated independently by JES and assigned its own job number and run separately. If you are referring to something else, you will have to explain what you mean.

As far as JES is concerned, a job that is being input starts when a JOB statement is found and continues until any of several conditions are met.

Re: Exec statement in jcl

PostPosted: Mon Aug 16, 2010 3:04 pm
by saumitra5552001
No i mean to say in a single PS file we can have multiple job cards..
@ Venki
Please try executing two JOB cards in a single flat file.it works perfectly fine ..