View previous topic :: View next topic |
Author |
Message |
sachin Beginner
Joined: 27 May 2003 Posts: 3 Topics: 2
|
Posted: Mon Jul 07, 2003 1:07 pm Post subject: How to view contents of Temp File in JCL |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Jul 07, 2003 3:50 pm Post subject: |
|
|
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 |
|
|
sachin Beginner
Joined: 27 May 2003 Posts: 3 Topics: 2
|
Posted: Wed Jul 16, 2003 3:08 pm Post subject: |
|
|
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 |
|
|
|
|