Exec statement in jcl



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Exec statement in jcl

Postby kranthi.kumarmca22 » Thu Jan 07, 2010 10:15 pm

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
kranthi.kumarmca22
 
Posts: 14
Joined: Thu Jan 07, 2010 9:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Exec statement in jcl

Postby Bill Dennis » Thu Jan 07, 2010 10:18 pm

Proper terminology:
If you are doing multiple STEPs in one JOB then you have an EXEC stmnt for each step.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Exec statement in jcl

Postby Arun A » Thu Jan 28, 2010 7:31 pm

hi

in jcl , you can have 255 JOB STEPS. in each job step yo should have the EXEC stmt.
Arun A
 
Posts: 6
Joined: Wed Jan 27, 2010 9:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Exec statement in jcl

Postby Robert Sample » Thu Jan 28, 2010 8:19 pm

Is there a question in here somewhere?
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Exec statement in jcl

Postby saumitra5552001 » Mon Feb 08, 2010 12:45 pm

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
saumitra5552001
 
Posts: 3
Joined: Mon Feb 08, 2010 12:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Exec statement in jcl

Postby saumitra5552001 » Mon Feb 08, 2010 12:57 pm

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.
saumitra5552001
 
Posts: 3
Joined: Mon Feb 08, 2010 12:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Exec statement in jcl

Postby venki3 » Tue Feb 16, 2010 3:44 pm

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
venki3
 
Posts: 4
Joined: Tue Dec 22, 2009 2:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Exec statement in jcl

Postby Robert Sample » Tue Feb 16, 2010 4:47 pm

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Exec statement in jcl

Postby saumitra5552001 » Mon Aug 16, 2010 3:04 pm

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 ..
saumitra5552001
 
Posts: 3
Joined: Mon Feb 08, 2010 12:38 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post