View previous topic :: View next topic
|
Author |
Message |
srikanth_cts
New User
Joined: 27 Feb 2008 Posts: 25 Location: Phoenix, AZ,USA
|
|
|
|
Hi,
I have a requirement of taking all the executing jobs in the SPOOL to a dataset. For this I have written a JCL
Code: |
//S0018AZT JOB ('3000-000000-00-A-00000000000'),
// ' REPORT',MSGCLASS=O,CLASS=T,NOTIFY=&SYSUID
//SO15RPT EXEC PGM=SDSF
//ISFOUT DD SYSOUT=*
//LOGFILE1 DD DISP=(NEW,CATLG,DELETE),UNIT=3390,
// DSN=S0015AZ.LOG.SDSF.SV1565RPT,
// SPACE=(CYL,(2,1),RLSE),DCB=(RECFM=FB)
//ISFIN DD *
PRE S0015*T
DA
ST
PRINT FILE LOGFILE1
PRINT
PRINT CLOSE
|
But the dataset is empty. Not able to figure out where I am going wrong. Any help guys??? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I can recall having a problem using an output dataset that was allocated in the same jobstep being empty.
What does the information in ISFOUT tell you. |
|
Back to top |
|
|
Peter Poole
New User
Joined: 07 Jan 2009 Posts: 50 Location: Scotland
|
|
|
|
Vague memory says that you need to tell it what to print as well as where...
PRINT FILE LOGFILE1
PRINT 1 99999
PRINT CLOSE
Cheers. |
|
Back to top |
|
|
srikanth_cts
New User
Joined: 27 Feb 2008 Posts: 25 Location: Phoenix, AZ,USA
|
|
|
|
Thanks Expat, you have pointed out the real problem area which i did not look into till now. The ISFOUT gives the exact extract of the spool, except that it printing 3 times (Not sure how)
Thanks again Expat |
|
Back to top |
|
|
|