ankushgattani wrote:I want to print the spool (SDSF) data to a dataset using JCL.
I know it can be done using XDC, wanted to know if there is any UTILITY for this, which can be used in a JCL.
The problem here is it is not clear whether the intent is to reprint data already in the JESx SPOOL, or to route data to both a dataset and the JESx SPOOL.
- It is possible to run SDSF in batch and execute SDSF commands to "print" SPOOL data to a dataset. I've never done this, but others have.
- There is no simple JCL to send a dataset to both a dataset and to the JESx SPOOL. When this is a requirement, you can use JCL like this
// EXEC PGM=yourprogram,...
//ddname DD DISP=(,CATLG),...,DSN=yourdataset
// EXEC PGM=IEBGENER or your favorite copy program
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=OLD,DSN=yourdataset
//SYSUT2 DD SYSOUT=*
//SYSIN DD DUMMY
If neither of these solutions appeal to you you can fall back to your XDC solution.