
Spool Data to a Dataset
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
/*
//
Please provide your feedback/suggestions regarding this tutorial on contact form. Tutorials related to COBOL, JCL, DB2 etc are also present on the Website for mainframe developers. Mainframe jobs can be posted on our mainframe jobs forum.
Click the +1 button below to share it with your friends and colleagues
Share this if you liked it!
Comments
masklinwael01
You seem to have got the niche from the root, Awesome work
Post new comment