Sending o/p file's content to spool withot adding extra step



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

Sending o/p file's content to spool withot adding extra step

Postby Misha786 » Tue Jan 12, 2021 6:51 pm

Hi -
We currently have a processing and error report that is sent to a file:

//XSOCF DD DSN=JIUP.U00P.JIUA910A,
// DISP=(,CATLG,DELETE),
// DCB=(DSORG=PS,BLKSIZE=0,LRECL=133,RECFM=FB),
// SPACE=(TRK,(200,100),RLSE)
I don’t want to keep the report file if the job abends and that is how it is coded above. But I would like to see it in Spool. I know I can add change the DISP and add extra steps, but I would like to keep it all in the same step. We have many jobs that handle the file the same way, so I’m looking for an easy way to do this without adding extra steps. The reason is, when the failed job is cleaned up from spool and placed in a separate tool for future reference, we would be able to see what the o/p files contained in it. Any suggestion would help please.
Misha786
 
Posts: 31
Joined: Fri Nov 27, 2020 12:28 am
Has thanked: 0 time
Been thanked: 0 time

Re: Sending o/p file's content to spool withot adding extra

Postby sergeyken » Tue Jan 12, 2021 8:20 pm

The dataset cannot be just re-routed to the spool without any change to the existing jobs.

In that case, adding extra JCL step would be the easiest way to reach this goal.

Other solutions are possible, but would require much more (10-100 times more) efforts.
Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
sergeyken
 
Posts: 438
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 7 times
Been thanked: 40 times

Re: Sending o/p file's content to spool withot adding extra

Postby Misha786 » Tue Jan 12, 2021 8:51 pm

Hi Sergeyken -
Thanks for for your thoughts. Would you please provide an idea what would be the approach (even if it is 10 times more effort ) to achieve this goal without adding an extra step. Thanks !!
Misha786
 
Posts: 31
Joined: Fri Nov 27, 2020 12:28 am
Has thanked: 0 time
Been thanked: 0 time

Re: Sending o/p file's content to spool withot adding extra

Postby NicC » Tue Jan 12, 2021 9:48 pm

Simply IEBGENER, or other utility of your choice, the dataset (not a file) to spool.
If you do not want to do that then you would have to change the program to write to another DD name and have that pointed to the spool. If that is outside the capabilities then run a separate job after to copy the dataset.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Sending o/p file's content to spool withot adding extra

Postby sergeyken » Tue Jan 12, 2021 11:28 pm

Misha786 wrote:Hi Sergeyken -
Thanks for for your thoughts. Would you please provide an idea what would be the approach (even if it is 10 times more effort ) to achieve this goal without adding an extra step. Thanks !!

Any other approach would require a sort of “interception” of data being stored into this “regular” dataset, which needs to be done “outside” of the job itself. There is nothing else except real headache, and unneeded interaction with zOS internals, or other gimmicky tricks.
If you need to hammer a nail, use a hammer, but do not invent a GPS-controlled flying copter with artificial intelligence.
Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
sergeyken
 
Posts: 438
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 7 times
Been thanked: 40 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post