Can we move output report to cataloged dataset and output cl



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Can we move output report to cataloged dataset and output cl

Postby skumar144 » Tue Jul 31, 2007 6:18 pm

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.
skumar144
 
Posts: 1
Joined: Tue Jul 31, 2007 6:00 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby amitava » Tue Jul 31, 2007 6:31 pm

Obviously u can. Just use the following statement -
//OCPRT02  DD DSN=<Your Dataset Name>,DISP=<>

:)
Regards,

Amitava
amitava
 
Posts: 5
Joined: Mon Jul 30, 2007 5:34 pm
Location: India
Has thanked: 0 time
Been thanked: 0 time

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

Postby William Thompson » Tue Jul 31, 2007 10:11 pm

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.
William Thompson
 
Posts: 81
Joined: Sat Jun 09, 2007 4:24 am
Location: Tucson AZ
Has thanked: 0 time
Been thanked: 1 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post