Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts self-restarting jobs in OPC jzhardy IBM Tools 1 Mon Aug 21, 2017 10:15 am
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us