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

Using VSAM KSDS file in Internal SORT


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Mon Dec 10, 2007 6:04 pm
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
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
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: 2358
Location: Israel

PostPosted: Mon Dec 10, 2007 6:27 pm
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
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
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

Moderator Emeritus


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

PostPosted: Tue Dec 11, 2007 5:11 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top