IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to submitt multiple jobs through the internal reader?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
Search our Forums:

Back to Top