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

JES2 JEC with JCLs


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Domenic Ailati

New User


Joined: 11 Apr 2017
Posts: 4
Location: USA

PostPosted: Wed Nov 20, 2019 8:52 am
Reply with quote

Is it possible to use JES2 JEC to run a series of JCLs?

All the examples I've seen use JEC to do an exec pgm=. In my case, I just have a stream JCLs that need to be run in order. Each JCL only needs to be run if then previous one in the chain finishes with a RC=0.

Example. I have JCL1, JCL2 & JCL3 all in LIB1.

I would like to be able to run the 3 JCLs in order starting with JCL1.

Any help would be appreciated.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 319
Location: Inside the SPEW (Cincinnati OH USA)

PostPosted: Wed Nov 20, 2019 10:02 am
Reply with quote

archive.ibmsystemsmag.com/mainframe/tipstechniques/systemsmanagement/jec-2-2/?page=2
Back to top
View user's profile Send private message
Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 394
Location: Bamberg, Germany

PostPosted: Wed Nov 20, 2019 8:13 pm
Reply with quote

Jobgroup requires JES2 at level Z22.

On the other side, an IEBEDIT with IF THEN ELSE could work as well.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Modify Several JCLs at the Same Time JCL & VSAM 6
No new posts Can we execute JES2 Commands in JES3? JCL & VSAM 4
No new posts How to add a NEW LPAR to JES2 MAS All Other Mainframe Topics 2
No new posts Using multiple routines at exit 6 in ... All Other Mainframe Topics 2
No new posts JES2 EXIT 6 QUESTION All Other Mainframe Topics 30
Search our Forums:

Back to Top