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

Problems with Table


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

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Thu Jul 21, 2005 2:33 am
Reply with quote

Hi all,
Can any one tell me wat is the easiest way to sort a table...!!
My table looks like this...
01 PLAN-TABLE.
05 PLAN-ENTRY OCCURS 100 TIMES INDEXED BY PLAN-INDEX.
10 PLAN-CODE-1TBL PIC X(03) VALUE SPACES.
10 PLAN-CODE-2TBL PIC X(03) VALUE SPACES.
10 PLAN-CODE-3TBL PIC X(03) VALUE SPACES.
10 PLAN-CODE-4TBL PIC X(03) VALUE SPACES.
10 PLAN-CODE-5TBL PIC X(03) VALUE SPACES.
10 PLAN-CODE-6TBL PIC X(03) VALUE SPACES.
10 PLAN-CODE-7TBL PIC X(03) VALUE SPACES.
10 PLAN-CODE-8TBL PIC X(03) VALUE SPACES.

If we take some values as below..for the table
540
542
550765
570
580
560680770
590
600
630660834
670
690
700
710
740

I need to load this to a one dimentional table but should be in the sorted order....is it possible...?
Back to top
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Thu Jul 21, 2005 4:05 am
Reply with quote

Hi

Make use of the search verb for sequential search or search all for binary.
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
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top