View previous topic :: View next topic
|
Author |
Message |
ovreddy
Active User
Joined: 06 Dec 2004 Posts: 211 Location: Keane Inc., Minneapolis USA.
|
|
|
|
Hi,
I have a program which is printing the report to our output class (SAR). Now I need to write the same report to a file, how I can do this in JCL without changing the program.
The JCL looks like...
//STE010 EXEC PGM=PGM0001
//DD1 DSN=TEST.INPUT,DISP=SHR
//REPORT1 SYSOUT=T --- T is a predefined output class
The program is currently writing to REPORT1. I need to write the same to a file. I have to do this in a single step.
Thanks,
Reddy |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Generally, initially output to your new dataset and then use something like IEBGENER to print it to sysout from the dataset.
Sorry, you will need an additional step..... |
|
Back to top |
|
|
ovreddy
Active User
Joined: 06 Dec 2004 Posts: 211 Location: Keane Inc., Minneapolis USA.
|
|
|
|
Hi William,
The output REPORT1 DD name is already setup in SAR. So I cannot change the step or dd name. This leads to a big change in SAR setup. I need to do it in one step.
Thanks,
Reddy |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Previously discussed, can not be accomplished in the same step.
Either write to dataset and then print in next step - - or - -
Trap output using SDSF and copy to dataset.
Option 1 much easier |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
ovreddy wrote: |
Now I need to write the same report to a file |
& at the same time you want the file in SYSOUT as well ? Is this what you are asking? |
|
Back to top |
|
|
|