There is a chapter in the manual "MVS/TSO Guide to Operations". It has instructions on DYNAM ALLOC, DYNAM CONCAT and other DYNAM commands... Probably in Dev Studio Help, also.
Windows/UNIX:
FILEDEF DDNAME DISK PATH/DSN (LRECL XXX RECFM F/V
OS is not mentioned in your question, but, this "may" lead you to SEARCH on key words and/or documentation...
hthThis message has been edited. Last edited by: Tom Flynn,
It has been a while, since I've been on the mainframe, but you might want to take a look at doing a DYNAM ALLOC for each of the GDG datasets, and then a DYNAM CONACT to concatenate the datasets into one DD name.
In cases like this, where I had many generations of data, I would try to dynamically construct my DYNAM ALLOC statements, so I wasn't concatenating any more datasets, than the query needed.
For example, if the current request only needed the last weeks worth of data, the code would only allocate and concatenate the last seven of the daily GDG's.This message has been edited. Last edited by: David Briars,
May 14, 2012, 04:40 PM
R Veit
If you do not designate a generation number on your dataset, it will read all generations.
For z/OS, reads the most current generation: DYNAM ALLOC FI TEST DS YOUR.DATASET.NAME.HERE(0) SHR REU
Read all generations: DYNAM ALLOC FI TEST DS YOUR.DATASET.NAME.HERE SHR REU
7.6.11 on Win 2003/IIS 6/Apache Tomcat 5.5 - MRE, ReportCaster Reporting Server z/OS 1.11, PDS Unified Excel, PDF, HTML