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

Sort features on VSAM file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Mon Feb 27, 2006 12:03 pm
Reply with quote

Hi,

Is it possible for us to perform all sort features on a VSAM file?

T & R
Prabs
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


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

PostPosted: Mon Feb 27, 2006 5:37 pm
Reply with quote

Prabs,

I have been using VSAM files with SORT ... are you asking for any perticular SORT feature....

Regards,

Priyesh.
Back to top
View user's profile Send private message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Mon Feb 27, 2006 6:22 pm
Reply with quote

No. I have just asked generally. So whatever sort features applied to flat file can be applied for VSAM file, right?

T & R
Prabs
Back to top
View user's profile Send private message
Pollyannaish

New User


Joined: 09 Jul 2005
Posts: 31
Location: Pune, India

PostPosted: Mon Feb 27, 2006 7:01 pm
Reply with quote

Ya prabs

you are right but it is just that you can't concatenate VSAM files while sorting as you can do with sequential files icon_biggrin.gif .
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: Mon Feb 27, 2006 10:00 pm
Reply with quote

Quote:
I have just asked generally. So whatever sort features applied to flat file can be applied for VSAM file, right?


If you're asking about DFSORT control statements and parameters, the answer is generally yes. However, there are some DFSORT parameters specifically for VSAM files such as VSAMIO, RESET, CINV and VSAMEMT.

You also have the option of processing VSAM input files as variable-length or fixed-length.

See the following for more information:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/1.8.3.4?SHELF=&DT=20050222160456&CASE=

Quote:
you can't concatenate VSAM files while sorting as you can do with sequential files


True, but note that's a system restriction, not just a DFSORT restriction.
Back to top
View user's profile Send private message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Tue Feb 28, 2006 11:41 am
Reply with quote

So how about the output file then? I believe it would be already created and defined. What will be the properties given?(disp=shr) Can you please give me a sample example (to copy or extract some recs)?

Also I would like to know whether the properties of both the input and output files shud be strictly same?

T & R
Prabs
Back to top
View user's profile Send private message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Tue Feb 28, 2006 11:49 am
Reply with quote

I think I shud make myself clear with my Q in the previous post.

What would be the output file(a FLAT or VSAM file?) when sorting an input VSAM file? Is it possible to give a vsam file in the output?

Please bear with me if am going awfully wrong.Thanks

T & R
Prabs
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Tue Feb 28, 2006 12:15 pm
Reply with quote

HI,

Quote:
What would be the output file(a FLAT or VSAM file?) when sorting an input VSAM file? Is it possible to give a vsam file in the output?


I believe, output file should be flat file.

Regards
Rupesh
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: Tue Feb 28, 2006 9:28 pm
Reply with quote

You decide whether the output file will be a VSAM file or non-VSAM file by specifying the appropriate SORTOUT DD statement. If you want a non-VSAM file, DFSORT will fill in the attributes. If you want a VSAM file, you have to define the attributes in the normal way

Quote:
Also I would like to know whether the properties of both the input and output files shud be strictly same?


Again, that's up to you. For example, you could use OUTREC to change the length of the output records.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top