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
 

 

can I view the sorted output in the tep data set

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: can I view the sorted output in the tep data set
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    Post subject: Re: hiiii
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    Post subject: Re: hiiii
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: 464

PostPosted: Wed Sep 28, 2005 9:23 am    Post subject: Re: hiiii
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: 464

PostPosted: Wed Sep 28, 2005 9:27 am    Post subject: Re: hiiii
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: 1452
Location: Chicago, IL

PostPosted: Wed Sep 28, 2005 12:12 pm    Post subject: Re: hiiii
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 Moderator


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

PostPosted: Wed Sep 28, 2005 8:35 pm    Post subject:
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    Post subject: Re: hiiii
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    Post subject: Re: hiiii
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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