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
 

 

Sort features on VSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Sort features on VSAM file
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: 1452
Location: Chicago, IL

PostPosted: Mon Feb 27, 2006 5:37 pm    Post subject: Re: Sort features on VSAM file
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    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Mon Feb 27, 2006 10:00 pm    Post subject:
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:

http://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    Post subject:
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    Post subject:
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: 464

PostPosted: Tue Feb 28, 2006 12:15 pm    Post subject: Re: Sort features on VSAM file
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 Moderator


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

PostPosted: Tue Feb 28, 2006 9:28 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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