Page 1 of 1

Can we move output report to cataloged dataset and output cl

PostPosted: Tue Jul 31, 2007 6:18 pm
by skumar144
Hi,
Currently we are using following code to send reports to SAR.
//OCPRT02  DD SYSOUT=(,),FREE=CLOSE

Now I have a requirement to move this otuput report to SAR as well as to some data set.

Can anyone help me?

Thanks and regards.

Re: Can we move output report to cataloged dataset and output cl

PostPosted: Tue Jul 31, 2007 6:31 pm
by amitava
Obviously u can. Just use the following statement -
//OCPRT02  DD DSN=<Your Dataset Name>,DISP=<>

:)

Re: Can we move output report to cataloged dataset and output cl

PostPosted: Tue Jul 31, 2007 10:11 pm
by William Thompson
skumar144 wrote:Now I have a requirement to move this otuput report to SAR as well as to some data set.

Generally, initially output to your new dataset and then use somethiing like IEBGENER to print it to sysout from the dataset.