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

Sorting the eliments in an Array


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rohit_raajin

New User


Joined: 10 May 2005
Posts: 10
Location: india

PostPosted: Tue Feb 06, 2007 6:32 pm
Reply with quote

Suppose we have 4 variables and we have defined them in a array. I want to sort this array on a particular variable ex- ascending in cobol .

I had a idea to do this using two performs varying the index and compare 1 by one .

Do any one have any other logic by which we can do this ?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Feb 06, 2007 6:57 pm
Reply with quote

Go look at this thread http://www.ibmmainframes.com/viewtopic.php?t=15902&highlight=sort+examples and at DavidatK's post, you'll enjoy the trip.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
No new posts COBOL Ascending and descending sort n... COBOL Programming 5
No new posts Sorting a record spanned over multipl... DFSORT/ICETOOL 13
No new posts To find an array of words (sys-symbol... JCL & VSAM 9
No new posts How to move values from single dimens... COBOL Programming 1
Search our Forums:

Back to Top