View previous topic :: View next topic
|
Author |
Message |
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
I want to use a temporary data set,
I want to store the sorted data from a input file into the Teporary data set..
can any one tell me how to do that???!!!!
I mean can I view the sorted output in the tep data set???!!
Title Changed from "hiiii" to "can I view the sorted output in the tep data set" : Priyesh |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
No. In a batch job, you are going to have to copy the contents of the temporary dataset to either a cataloged dataset or to sysout. |
|
Back to top |
|
|
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
Kevin wrote: |
No. In a batch job, you are going to have to copy the contents of the temporary dataset to either a cataloged dataset or to sysout. |
thanks kevin..
so how to know that it is worked???I mean sorted or not???
if we cant view it.. so what is the use of temp??? |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi Siresh,
Quote: |
if we cant view it.. so what is the use of temp??? |
We use the Temp dataset only within job to save space issue. and after completion of job the temp dataset gets deleted. If you want to see the output you have to copy it in calt dataset.
The main purpose of temp dataset is to use space.
Hope this helps
Regards
Rupesh |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
SOrry for may last statement the correct on is
The main purpose to use Temp dataset is to save the space.
Regards
Rupesh |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
pmmsiresh,
Quote: |
can I view the sorted output in the tep data set???!! |
Answering your written query, Its NO....You cant view contents of a TEMP DS until you copy it to a cataloged one or mentioned in the above posts method.
Still, I guess your main goal is to verify the temp dataset, whether it has sorted recs or not. For that you can add another step in between to your job. Refer to the link below for that...
http://ibmmainframes.com/viewtopic.php?t=5699
Regards,
Priyesh. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
If you want to view the contents of the sorted data set, you can output it to SYSOUT. You can use a DFSORT OUTFIL statement to output it to the temp data set and SYSOUT as follows:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//TEMPOUT DD DSN=... temp output file
//VIEWOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(...)
OUTFIL FNAMES=(TEMPOUT,VIEWOUT)
/*
|
|
|
Back to top |
|
|
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
Rupesh.Kothari wrote: |
Hi Siresh,
Quote: |
if we cant view it.. so what is the use of temp??? |
We use the Temp dataset only within job to save space issue. and after completion of job the temp dataset gets deleted. If you want to see the output you have to copy it in calt dataset.
The main purpose of temp dataset is to use space.
Hope this helps
Regards
Rupesh |
Thanks Rupesh |
|
Back to top |
|
|
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
priyesh.agrawal wrote: |
pmmsiresh,
Quote: |
can I view the sorted output in the tep data set???!! |
Answering your written query, Its NO....You cant view contents of a TEMP DS until you copy it to a cataloged one or mentioned in the above posts method.
Still, I guess your main goal is to verify the temp dataset, whether it has sorted recs or not. For that you can add another step in between to your job. Refer to the link below for that...
http://ibmmainframes.com/viewtopic.php?t=5699
Regards,
Priyesh. |
thanks Priyesh |
|
Back to top |
|
|
|