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
 
Dynamic datasets in JCL

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

New User


Joined: 17 May 2006
Posts: 1

PostPosted: Wed May 17, 2006 6:44 pm    Post subject: Dynamic datasets in JCL
Reply with quote

Hello.

I have a program (SQR) on DB2 that will be reading many lines of data, each line containing a unique id. I want this unique id to make up part of the dataset name (i.e. there will be one dataset for each line of data read). How do I do this in JCL, because at run time, I have no idea how many datasets will be created or what their names will be?

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

die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Wed May 17, 2006 8:53 pm    Post subject:
Reply with quote

http://ibmmainframes.com/viewtopic.php?t=10746&highlight=putenv
should give an idea of how PUTENV could be called to allocate any number of files dynamically.
Back to top
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Tue Jul 25, 2006 1:24 pm    Post subject:
Reply with quote

Hi Tanya,

By any chance were you able to achieve what you wanted.....

I also want to do the same kind of thing.......

Could you please help me out with this.

Thanks.
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm

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