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 start two steps simantaneously in a single JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mchanapa

New User


Joined: 17 Nov 2011
Posts: 36
Location: India

PostPosted: Wed Dec 04, 2013 2:39 pm    Post subject: How to start two steps simantaneously in a single JCL
Reply with quote

Hi,

I have a requirement to start two steps simultaneously in a single JCL.
Kindly let me know.

Regards,
Kishore ch.
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Wed Dec 04, 2013 2:57 pm    Post subject:
Reply with quote

Do you mean
Job zzz has 2 steps and you wanted them to execute parallely once zzzz is submitted ?

But if you could explain what you are trying to achieve someone could help
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Dec 04, 2013 3:28 pm    Post subject:
Reply with quote

Can't be done in the way you want to do it.

However, you can parallel run two jobs together, where JOB1 feeds data to JOB2, however the software required does not come free from IBM.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Dec 04, 2013 5:04 pm    Post subject:
Reply with quote

A job executes sequentially -- step 1 is followed by step 2 is followed by step 3 .... There is no way to change this behavior, hence as has been stated what you wanted to do is not possible -- PERIOD. As expat indicates, though, it can be done via multiple jobs -- but not in a z/OS system straight out of the box (so to speak); other software is needed.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Wed Dec 04, 2013 6:21 pm    Post subject:
Reply with quote

I know everyone here loves to be technical.....

Is a JCL the same as a JOB?

Back in my day a JCL would refer to a 'deck' of punch cards that could contain many JOB cards.

In fact we would load a huge JCL deck into the card reader with that nights schedule, all Jobs were TYPRUN=HOLD. We would release them from the input queue as needed.

With that being said, the JCL could look like this:

Code:
//XXXJOB1    JOB (&SYSUID,TEST,350-751),CLASS=Q,MSGCLASS=Z,
//           NOTIFY=&SYSUID
//*
//STEP1      EXEC PGM=IEFBR14,
//           ACCT=(XXX,TEST,260-300)
//*
//XXXJOB2    JOB (&SYSUID,TEST,350-751),CLASS=Q,MSGCLASS=Z,
//           NOTIFY=&SYSUID
//*
//STEP2      EXEC PGM=IEFBR14,
//           ACCT=(XXX,TEST,260-300)
//*

The Jobs would be submitted to JES sequentially, but would probably run at the same time, with different names if there were enough initiators available.

Just some thoughts...
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Dec 04, 2013 6:23 pm    Post subject:
Reply with quote

Let's assume the almight had made this happen - what will you achieve out of it? I don't seem to guess good, can you please help?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Dec 04, 2013 7:45 pm    Post subject:
Reply with quote

Hello,

Why does someone believe there is such a requirement . . . icon_confused.gif
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Wed Dec 04, 2013 7:54 pm    Post subject:
Reply with quote

Quote:
Why does someone believe there is such a requirement . . .


My bet is that this related to the other thread about two jobs with the same name....

Both TS are on a 'treasure hunt'. The first to come up with the answer, wins the prize. icon_wink.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed Dec 04, 2013 8:00 pm    Post subject: Reply to: How to start two steps simantaneously in a single
Reply with quote

nope icon_wink.gif

not the same TS
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Dec 04, 2013 8:00 pm    Post subject:
Reply with quote

Hi Dave,

I believe the "other" thread has mis-spoken in the sugject. There is no need for both running at the same time. It just needs a way to determine which of 2 is to be run.

The same may apply here . . .
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1238
Location: Richfield, MN, USA

PostPosted: Wed Dec 04, 2013 8:06 pm    Post subject: Re: Reply to: How to start two steps simantaneously in a sin
Reply with quote

enrico-sorichetti wrote:
nope icon_wink.gif

not the same TS
... or the same Thread Starter with 2 different user names.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Wed Dec 04, 2013 8:49 pm    Post subject:
Reply with quote

Just seems to much of coincidence to me.

Very similar 'requirements'.

Also looks like one of those cases where the 'solution' comes before the design.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Event-driven programming (BTS) VS (ST... Rohit Umarjikar CICS 2 Sat Jun 11, 2016 2:05 am


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