MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to view contents of Temp File in JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sachin
Beginner


Joined: 27 May 2003
Posts: 3
Topics: 2

PostPosted: Mon Jul 07, 2003 1:07 pm    Post subject: How to view contents of Temp File in JCL Reply with quote

Is it possible to see the contents of a temp file as in &&temp while the JCL which uses it is running?

Please advice.

Thanks,

Sachin
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Jul 07, 2003 3:50 pm    Post subject: Reply with quote

Sachin,

There is a no straight forward solution for viewing the temp file created in the job.You can add an IEBGENER step at the end of job which will dump the contents of the temp file either to a dataset or sysout.Here is a sample Jcl. The step01 copies a 1 line file to a temp file &&T1 and the step02 copies that temp file to Sysout. The same can be copied to a dataset also instead of sysout.

Code:

//STEP01   EXEC PGM=SORT               
//SYSOUT   DD SYSOUT=*                 
//SORTIN   DD *                         
ABC                                     
//SORTOUT  DD DSN=&&T1,                 
//            DISP=(NEW,PASS,DELETE),   
//            UNIT=SYSDA,               
//            SPACE=(CYL,(1,1),RLSE)   
//SYSIN    DD *                         
 SORT FIELDS=COPY                       
//*

//STEP02   EXEC PGM=IEBGENER           
//SYSPRINT DD SYSOUT=*                 
//SYSUT1   DD DSN=&&T1,DISP=SHR       
//SYSUT2   DD SYSOUT=*                 


Another alternative is to change the dataset from a temporary dataset to a catalogued dataset.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sachin
Beginner


Joined: 27 May 2003
Posts: 3
Topics: 2

PostPosted: Wed Jul 16, 2003 3:08 pm    Post subject: Reply with quote

The job from which I need the temp file information is a production job and I can not add an IEBGENER step to the JCL. Is it possible to get the contents of the temp file from spool during the execution of job.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group