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
 

 

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 DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm


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