Transferring Data from Spool to a Dataset
Many a times we need the data sitting in spool to be transferred to a dataset. We might be researching on that data or the client might be looking for that data.
To take care of such requests we can make use of any of the two approaches described here
Method 1: (XDC)
1. Goto Spool
2. Give XDC against the jobname,
3. Provide details of the dataset to which contents to be transferred.
Method 2: Using a Job
//BATCHSP JOB (ACC INFO,,,,,XXXX),’ ‘,CLASS=M, // MSGCLASS=Y,NOTIFY=&SYSUID //********************************************************//** COPY THE ISPF PROFILE
//*********************************************************
//BSDSF EXEC PGM=ISFAFD,PARM=’++30,256’ //ISFOUT DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSPRINT DD SYSOUT=* //SYSTSPRT DD SYSOUT=* //SYSOUT DD SYSOUT=* //ISFIN DD * PRE job-name ST FILTER JOBID EQ job-id ++? FIND ‘SYSOUT’ ++S PRINT ODSN ‘USER.ABC.XYZ’ * SHR PRINT 1 9999 PRINT CLOSE END EXIT /*
//