Focal Point
[CLOSED] Reading Multiple GDG's

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4707051026

May 14, 2012, 11:24 AM
moyer1dl
[CLOSED] Reading Multiple GDG's
Hello

Is there a way to to read multiple GDG's in Webfocus or Focus.

We have a 30 GDG files of daily history that we want webfocus to be able to read all of them in the same execution of the fex.

Any help would be appreciated.

Thanks

Dan

This message has been edited. Last edited by: Kerry,


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
May 14, 2012, 11:57 AM
Tom Flynn
Mainframe JCL:
 
//DDNAME DD DSN=LEV1.LEV2.LEV3(+0), DISP=SHR
//       DD DSN=LEV1.LEV2.LEV3(-1), DISP=SHR
//       DD DSN=LEV1.LEV2.LEV3(-2), DISP=SHR
//       DD DSN=LEV1.LEV2.LEV3(-3), DISP=SHR
//       DD DSN=LEV1.LEV2.LEV3(-4), DISP=SHR
//       DD DSN=LEV1.LEV2.LEV3(-5), DISP=SHR
//       DD DSN=LEV1.LEV2.LEV3(-6), DISP=SHR
.
.
//       DD DSN=LEV1.LEV2.LEV3(-29), DISP=SHR

Mainframe CLIST:
DYNAM ALLOC DD

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...

hth

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
May 14, 2012, 12:03 PM
David Briars
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