How can I get the same output from a CA Ideal DISPLAY DATAVIEW written to member of a PDS?

Document ID : KB000012392
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How can I get the same output from a CA Ideal DISPLAY DATAVIEW written to member of a PDS?

Answer:

The DISPLAY DATAVIEW batch output is written to PRTLIST DD which is normally defined as SYSOUT=*.

So, output to member of a PDS, first allocate the PRTLIST PDS data set with RECFM FBA and LRECL 133. 

Then, use separate batch steps with DISPLAY DATAVIEW dvwname to separate members of PRTLIST data set

Example for two Dataviews named dvwname1 and dvwname2:

//JCLLIB JCLLIB ORDER=my.proclib
//IDLBATCH EXEC myIdealbatchproc

//PRTLIST  DD   DISP=SHR,DSN=PRTLIST.PDS(dvwname1)
//SYSIN    DD   *
DIS DATAVIEW dvwname1
/*
//IDLBATCH EXEC myIdealbatchproc
//PRTLIST  DD   DISP=SHR,DSN=PRTLIST.PDS(dvwname2)
//SYSIN    DD   *
DIS DATAVIEW dvwname2
/*

 

 

Additional Information:

You could also run your Ideal batch job first to get the list of Dataviews via:

//JCLLIB JCLLIB ORDER=my.proclib
//IDLBATCH EXEC myIdealbatchproc

//PRTLIST  DD   SYSOUT=*
//SYSIN    DD   *
DIS IND DATAVIEW 
/*