IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SNAPSHOT of the SPOOL into a dataset


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srikanth_cts

New User


Joined: 27 Feb 2008
Posts: 25
Location: Phoenix, AZ,USA

PostPosted: Wed Feb 11, 2009 10:15 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Feb 11, 2009 10:24 pm
Reply with quote

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
View user's profile Send private message
Peter Poole

New User


Joined: 07 Jan 2009
Posts: 50
Location: Scotland

PostPosted: Wed Feb 11, 2009 10:32 pm
Reply with quote

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
View user's profile Send private message
srikanth_cts

New User


Joined: 27 Feb 2008
Posts: 25
Location: Phoenix, AZ,USA

PostPosted: Wed Feb 11, 2009 11:16 pm
Reply with quote

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) icon_eek.gif



Thanks again Expat
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top