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
 

 

Instream Jobs submitted with dependency

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

New User


Joined: 15 Jun 2005
Posts: 16

PostPosted: Thu Jan 21, 2010 8:08 am    Post subject: Instream Jobs submitted with dependency
Reply with quote

Hi,
I have two jobs job1 and job2, I want submit those instreamly . And job2 need to run after job1 is complete successfully.
I tried the ff. JCL, but two jobs ran cocurrently.
//***********************************
//** THIS SUBMITS IN STREAM JOBS **
//***********************************
//*
//INTRDR EXEC PGM=IEBGENER
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSUT1 DD DSN=TEST.JCL(JOB1),DISP=SHR
// DD DSN=TEST.JCL(JOB22),DISP=SHR
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: Thu Jan 21, 2010 8:15 am    Post subject:
Reply with quote

Hello,

Quote:
I tried the ff. JCL, but two jobs ran cocurrently.
What is "ff.JCL"?

The jcl posted submits 2 jobs. You need to change job1 to include this as the last step so that when job1 completes, job2 is submitted.

For the submission of job1, there should be no concatenaton in the sysut1 dd statement. For the submission of job2, only the job2 member should be submitted.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Jan 21, 2010 8:16 am    Post subject:
Reply with quote

Hi,

Quote:
I tried the ff. JCL, but two jobs ran cocurrently.
what is ff. ?

Why don't you let job1 submit job22 after successful completion.

Gerry
Back to top
View user's profile Send private message
lovemorning

New User


Joined: 15 Jun 2005
Posts: 16

PostPosted: Thu Jan 21, 2010 8:36 am    Post subject:
Reply with quote

gcicchet wrote:
Hi,

Quote:
I tried the ff. JCL, but two jobs ran cocurrently.
what is ff. ?

Why don't you let job1 submit job22 after successful completion.

Gerry

Hi Gerry,
Sorry, ff. means following. Because I have a lot jobs need to submit , but there is no scheduler we can use. I hope there is way to submit those jobs like a scheduler does.
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: Thu Jan 21, 2010 10:20 am    Post subject:
Reply with quote

Hello,

Read my reply before the reply from Gerry.

Instead of only 2 the process would be continued for each job that needs to follow another. 1 submits 2, 2 submits 3, 3 submits 4 and so on. . .
Back to top
View user's profile Send private message
lovemorning

New User


Joined: 15 Jun 2005
Posts: 16

PostPosted: Thu Jan 21, 2010 11:01 am    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Read my reply before the reply from Gerry.

Instead of only 2 the process would be continued for each job that needs to follow another. 1 submits 2, 2 submits 3, 3 submits 4 and so on. . .

Thx d.sch. I was planning not to change all the existing JCLs to run the batch. The way you are talking works too. But how to resolve the situation : Job2 and job3 need to run after the completion of job1. Job 4 need wait until both job2 and job3 are done. Where should I put job4? Let job2 to submit job3? So no jobs can ran cocurrently in this way, right?

Job1--job2,job3 -- job4
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Jan 21, 2010 11:04 am    Post subject:
Reply with quote

Hi,

you need a scheduling tool.


Gerry
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Jan 21, 2010 11:08 am    Post subject: Reply to: Instream Jobs submitted with dependency
Reply with quote

Quote:
was planning not to change all the existing JCLs to run the batch.

review Your planning, or live with the out of sequence execution

since You do not have/you cannot use a scheduler the only way out is strict sequential execution
job1 submits job2 which submit job3 which submit job4 ( no other way around the problem )

or if You are running JES3 You might use DJC
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1746
Location: Bloomington, IL

PostPosted: Thu Jan 21, 2010 5:42 pm    Post subject:
Reply with quote

lovemorning, you do not say if your system uses JES2 or JES3. If JES3, then you should look into DJC networking, which may meet your requirements.
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
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm
No new posts Predicting jobs which are about to re... kpanchabhai85 DFSORT/ICETOOL 4 Thu Jun 30, 2016 7:51 pm
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am


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