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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 6 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm


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