Spool to a dataset



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

Spool to a dataset

Postby sankar.guna » Thu Apr 03, 2008 7:43 pm

hi all,

I have a job , which gets some data from some files and display it in the spool in the first step(using a cobol program).

i want the data displayed in the spool to get stored in a dataset.Can i do this in the second step, without changing the program in the first step.
Thanks a lot
_________________
Sankaranarayanan.G
sankar.guna
 
Posts: 11
Joined: Wed Apr 02, 2008 5:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Spool to a dataset

Postby arunprasad.k » Thu Apr 03, 2008 7:46 pm

without changing the program in the first step


May I know why you dont want to change the exisiting program??
arunprasad.k
 
Posts: 110
Joined: Thu Dec 27, 2007 5:18 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Spool to a dataset

Postby CICS Guy » Thu Apr 03, 2008 9:16 pm

Take a look at Lionel B. Dyck's SDSFEXT - A generalized SDSF batch (or TSO) tool to extract a report into a dataset, it should do exactly what you want.....
Or change the first step to a dataset and add a second step to display it in the sysout......
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: Spool to a dataset

Postby dick scherrer » Fri Apr 04, 2008 2:05 am

Hello,

You could also change the display sysout to a file and then copy that file into the spool if there really is a reason for it to be in the spool. There would be no need to change the program at all - just a minor jcl change.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Spool to a dataset

Postby ramu65 » Sun Mar 09, 2014 8:07 pm

I want to copy specific information from spool to dataset.

1.When a program ends in error,I want only the error code and the step where error occured to be copied from spool to dataset...

2.When a program is successful,I want only the successful execution message to be copied from spool to dataset

please provide some hints to achieve the same
ramu65
 
Posts: 29
Joined: Sat Feb 08, 2014 10:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Spool to a dataset

Postby steve-myers » Sun Mar 09, 2014 9:36 pm

dick scherrer wrote:Hello,

You could also change the display sysout to a file and then copy that file into the spool if there really is a reason for it to be in the spool. There would be no need to change the program at all - just a minor jcl change.
Dick - Most of the time this will work fine, but not always.

There will be a problem in two situations.
  • A program that, in one step, opens a data set, closes the data set, and repeats this foolishness several times. If the JCL specifies DISP=OLD or DISP=NEW, data management will overwrite the data set each time the data set is opened. On the other hand, if the data set is routed to SYSOUT, JES will extend the data set each time it is opened, as though the JCL specified DISP=MOD. I believe this has been reported several times in this forum.
  • There may be performance issues if the data set cannot be blocked. This is not an issue if the data set is a SYSOUT data set, since JES automatically blocks the data.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post