In Ideal online , transaction DEA in CICS , DISPLAY DATAVIEW shows the dataview content on the screen but sometimes it's needed to write the dataview output to a PDS member.
z/OS
Ideal
Run IDBATCH DISPLAY DATAVIEW but with modified JCL . By default IDBATCH output is written to PRTLIST DD which is normally defined as SYSOUT=*.
To save the dataview output to a PDS member , 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
This is an example how to write DISPLAY DATAVIEW output for 2 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
/*
To get a list of all dataviews in Ideal , run this :
//JCLLIB JCLLIB ORDER=my.proclib
//IDLBATCH EXEC myIdealbatchproc
//PRTLIST DD SYSOUT=*
//SYSIN DD *
DIS IND DATAVIEW
/*
For documentation on IDBATCH , see Batch Job Stream in z/OS.