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
 

 

Dynamically submit job multiple times

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

New User


Joined: 15 Jan 2013
Posts: 6
Location: India

PostPosted: Mon Jan 28, 2013 3:08 pm    Post subject: Dynamically submit job multiple times
Reply with quote

Hi,


Below is my requirement...

1. Expand a composite account to obtain x number of sub-accounts, say 99 sub-accounts (I have the step for this)
2. For each of these sub-accounts, run a JCL that will...
    a. Generate an FSR report (steps for this are provided by a third-party)
    b. Convert this FSR report into PDF format (I have the step for this)
    c. FTP or NDM this report to a file server, with sub-account number added to file name to ensure it is not over-written (I have the step for this)
I need help with the text in red above.

So essentially, what I need to know is how do I submit a job (or maybe even a bunch of steps within a job) 'x' number of times where 'x' is a number that is derived from a previous step?


Thank you,
Nainesh A Jadwani
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Jan 28, 2013 3:20 pm    Post subject: Reply to: Dynamically submit job multiple times
Reply with quote

we really do not care about the content of <stage 2> jobs

the easiest way will be
for step 1 ==> generate a PS dataset with all the parameters needed to run the needed jobs

add a step 2 to
run a batch ISPF REXX script which
reading the PS dataset with the customizations to be done
and using ISPF file tailoring services
will build one or more jobs ( really indifferent from the script point of view )
and will submit them

search the forums for my file tailoring snippets
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7935
Location: Bellevue, IA

PostPosted: Mon Jan 28, 2013 3:24 pm    Post subject:
Reply with quote

Use the internal reader to submit X jobs.
Be prepared for the complaints from your production support group.

It is not possible to cause JCL to loop -- JCL is not a programming language in the classic sense and does not have the control structures to allow you to do what you want inside one job.
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 calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 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


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