Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SNAPSHOT of the SPOOL into a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: SNAPSHOT of the SPOOL into a dataset
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: 8593
Location: Back in jolly old England

PostPosted: Wed Feb 11, 2009 10:24 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: SNAPSHOT of the SPOOL into a dataset
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us