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
 

 

Using VSAM KSDS file in Internal SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
manjunath_mf

New User


Joined: 06 Dec 2007
Posts: 11
Location: Bangalore

PostPosted: Mon Dec 10, 2007 5:35 pm    Post subject: Using VSAM KSDS file in Internal SORT
Reply with quote

can we use vsam ksds file in internal sort as input and output file?
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Dec 10, 2007 6:04 pm    Post subject:
Reply with quote

Why won't you try it and let us know?

O.
Back to top
View user's profile Send private message
manjunath_mf

New User


Joined: 06 Dec 2007
Posts: 11
Location: Bangalore

PostPosted: Mon Dec 10, 2007 6:23 pm    Post subject:
Reply with quote

ofer71 wrote:
Why won't you try it and let us know?

O.


its giving error..
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Mon Dec 10, 2007 6:25 pm    Post subject:
Reply with quote

I have always heard that internal sorts are bad and you should always use an external sort if possible.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Dec 10, 2007 6:27 pm    Post subject:
Reply with quote

Can you post the error message/error id?

O.
Back to top
View user's profile Send private message
maheshajagtap
Currently Banned

New User


Joined: 10 Jun 2007
Posts: 6
Location: pune

PostPosted: Mon Dec 10, 2007 7:01 pm    Post subject: Reply to: internal sort
Reply with quote

i thik internal sort is possible in only sequential files.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Dec 10, 2007 7:12 pm    Post subject: Re: Reply to: internal sort
Reply with quote

maheshajagtap wrote:
i thik internal sort is possible in only sequential files.


If you do an internal sort with an INPUT PROCEDURE and an OUTPUT PROCEDURE you can use any file type COBOL supports, or even screen input and output.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Dec 11, 2007 5:11 am    Post subject:
Reply with quote

Hello

Quote:
I have always heard that internal sorts are bad and you should always use an external sort if possible.
Opinions vary. . .

Many years ago, the "pure" systems programmers were dead set against the internal sort.

There are many times the SORT verb works quite nicely. It can often turn 3 steps with restart considerations into a single step.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am


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