Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us