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

Dynamic JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Wed Jul 22, 2009 2:16 pm
Reply with quote

Hi,
My requirement is to read a file and decide on the number of steps.

Input file :
SAMP1
SAMP3
SAMP5

If my input file has 3 records, i need to create a jcl with 3 steps.
And i need to pass the variable that i read in input file since other steps has this field as a qualifer in DD name. Is this possible??

Thanks,
Anand
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 22, 2009 2:24 pm
Reply with quote

Yes, assuming that the three steps all use the same program and DD names, then using REXX and ISPF file tailoring will do what you want.

Or you can use REXX to contain the hardcoded JCL and spill it out to another dataset / INTRDR - Not a method I like.
Back to top
View user's profile Send private message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Wed Jul 22, 2009 2:29 pm
Reply with quote

Hi Expat,
The requirement is to do this in JCL...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 22, 2009 3:01 pm
Reply with quote

/RANT ON
Once more let us clarify exactly what JCL is.

it is Job Control Language.

By itself it does nothing. It is used to invoke the chosen program and to define which datasets are to be used by the DD names associated with the chosen program.

JCL does not have magical powers that solve all problems, JCL is merely the vehicule for telling the processor which program you want it to execute.
/RANT OFF

So take a second read of my original post because it can be actioned in batch, or background (to use another term), which I believe equates to you misconstrued "done in JCL".

So which program will the JCL execute
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 Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
No new posts Dynamic file allocation using JCL JCL & VSAM 8
No new posts Dynamic Sortin DD cards SYNCSORT 8
Search our Forums:

Back to Top