IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

can I view the sorted output in the tep data set


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pmmsiresh

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Tue Sep 27, 2005 10:11 pm
Reply with quote

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
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Wed Sep 28, 2005 12:28 am
Reply with quote

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
View user's profile Send private message
pmmsiresh

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Wed Sep 28, 2005 12:32 am
Reply with quote

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
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Sep 28, 2005 9:23 am
Reply with quote

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
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Sep 28, 2005 9:27 am
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Sep 28, 2005 12:12 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Sep 28, 2005 8:35 pm
Reply with quote

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
View user's profile Send private message
pmmsiresh

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Wed Sep 28, 2005 9:34 pm
Reply with quote

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 icon_biggrin.gif
Back to top
View user's profile Send private message
pmmsiresh

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Wed Sep 28, 2005 9:35 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts SET PATH in View DDL DB2 2
Search our Forums:

Back to Top