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 submitt multiple jobs through the internal reader?

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

New User


Joined: 20 May 2006
Posts: 2

PostPosted: Sat May 20, 2006 2:38 pm    Post subject: How to submitt multiple jobs through the internal reader?
Reply with quote

How to submitt the multiple jobs with different job ids through the internal reader?

My approach is to write a cobol program in which we need to generate the the JOB's which needs to be submitted and write all these jobs onto the output dataset and point it to the SYSOUT = (*,INTRDR).

So that all these jobs will be processed.And the output dataset contains the Different jobs with different JOB ID's.can we be able to submitt multiple jobs and Can anyone let me know is this the proper approach?
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun May 21, 2006 10:30 am    Post subject:
Reply with quote

I've never had need to sumit multiple jobs, but I don't see why you couldn't string the JCL, one behind the other. That's how they're submitted outside of INTRDR.

Why don't you use IEBGENR or SORT to submit a few jobs (IEFBR14s) to test the concept?
Back to top
View user's profile Send private message
anju82

New User


Joined: 20 May 2006
Posts: 2

PostPosted: Sun May 21, 2006 10:43 am    Post subject:
Reply with quote

Hi Jack,

Thanks for ur reply canyou pls send me a sample JCL.


Regards,
Anju.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed May 24, 2006 6:33 am    Post subject:
Reply with quote

Hi Anju,

Here's the SORT JCL:
Code:

//srtjob job ....
//srtstp exec pgm=sort
//sysout dd sysout=*
//sysprint dd sysout=*
//SYSIN    DD *
 SORT FIELDS=COPY
//sortout dd sysout=(,intrdr)
//sortin dd data,dlm='~~'  (Anju - you can use any char not found in I/P)
//tstjob1 job ....
//tststp1 exec pgm=iefbr14
//tstjob2 job ....
//tststp2 exec pgm=iefbr14
~~


Naturally, everthing s/b in upper case. If you use notify= in all the JCLs you should get msgs for all 3 jobs - the gener job and the 2 iefbr14 jobs. You should also see them in the JES Q.

Let me know how you make out.
Back to top
View user's profile Send private message
hanumanth

New User


Joined: 25 May 2006
Posts: 6
Location: pune

PostPosted: Thu May 25, 2006 4:51 pm    Post subject:
Reply with quote

HI,
Please find the sample piece of code u can write end of the every JCL.

//STEP999 EXEC PGM=IEBGENER,
// COND=(1,LT)
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=TEST.ADW.NASCO.D9364.JCL(FLCE96N1),DISP=SHR
//SYSUT2 DD SYSOUT=(,INTRDR)
//SYSIN DD DUMMY


Regards
Hanumanth
IBM Global service India Ltd.
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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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