View previous topic :: View next topic |
Author |
Message |
Mukunda Beginner
Joined: 11 Dec 2002 Posts: 46 Topics: 15
|
Posted: Mon Mar 01, 2004 2:11 pm Post subject: Routing SYSOUT to a dataset and also to spool - Possible? |
|
|
We have a job that validates some transactions. The validation program writes out the summary stats to the spool. We want to capture this in a dataset. While this can easily be done, incase of abends, one has to check the dataset for any error messages. This is not acceptable for some of my fellow prod. support guys. Introducing another report file and making code changes is not acceptable for my manager.
Is there a way to do both - route the SYSOUT to spool as well as to a dataset in the same step?  |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Mar 01, 2004 2:18 pm Post subject: |
|
|
Mukunda,
whenever you are writting it to the spool , it usually goes to sysout or sysprint depending on the pgm/utility .Now allocate a dataset to sysout/sysprint in the pgm step and write the summary stats to the dataset. In the next step code an IEBGENER step which will copy the report to spool. This method will involve a change in the JCL(additional step).
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Mukunda Beginner
Joined: 11 Dec 2002 Posts: 46 Topics: 15
|
Posted: Mon Mar 01, 2004 2:41 pm Post subject: |
|
|
Kolusu
Thanks for the quick pointer. There is an issue with this approach. Incase of abends, then next step would not execute.
I might have to code an IF ABEND construct and do the next step for copying the dataset. I was wondering if there is an alternative.  |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Mar 01, 2004 2:47 pm Post subject: |
|
|
Mukunda,
Code a COND=EVEN on the copy step , which tells MVS to execute this job step EVEN IF a prior step in the same job abends, unless the job is canceled by
the MVS operator.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Mon Mar 01, 2004 2:57 pm Post subject: |
|
|
Have you considered using a specific product to read the data off the JES spool and write it into a dataset? I'm thinking about such tools as the JES Spool Offloader, RMDS, SAR, Mobius, or even a proprietary in-house started task designed to read data from an assigned external-writer output class.
I've read in many technical forums that IBM's SDSF (I've never had this product available, so I can't vouch for this claim) has a batch interface that can read specific job output from the spool. |
|
Back to top |
|
 |
Mukunda Beginner
Joined: 11 Dec 2002 Posts: 46 Topics: 15
|
Posted: Mon Mar 01, 2004 2:58 pm Post subject: |
|
|
Thanks Kolusu. The way in which you are replying the questions would make this site something of an mvschat.com  |
|
Back to top |
|
 |
|
|