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
 

 

Dynamical cerating of GDG-generations as output files

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

New User


Joined: 13 Apr 2008
Posts: 1
Location: Hamburg Germany

PostPosted: Mon Apr 14, 2008 12:48 pm    Post subject: Dynamical cerating of GDG-generations as output files
Reply with quote

Hi!

My requirement is:
A program processes an input file. Depending on the input data, numerous generations of a GDG-file should be created. The number of GDG-generations is not known as it depends on the data used as input.

My question:
is it possible, to have numerous generations of a GDG-file created without knowing the number of generations needed, e.g. without hardcoding it? Or in other words: is it possible to create a number of generations dynamically?

Thanks for your help!

Arkus
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Mon Apr 14, 2008 12:51 pm    Post subject: Reply to: Dynamical cerating of GDG-generations as output fi
Reply with quote

Yes it is possible, but not within jcl itself,

there are two ways
... dynamic allocation inside the program,
... prescan of Your data to generate a step to do the allocations..

but for such processing needs the best thing is to speak to Your storage support group,
after all it is one of their duties to define the proper standards and advice on the proper procedures
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Apr 14, 2008 4:17 pm    Post subject:
Reply with quote

Without knowing your set up, as a storage guy I would start asking questions when numerous GDG gens started cropping up.

Would it not be better to use individual files for individual conditions / data, because at tleast that way you know what should be in a file, rather than in an unknown GDG gen.
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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm


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