Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us