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 How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 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 Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


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