View previous topic :: View next topic |
Author |
Message |
sateesh_gontla Beginner
Joined: 23 Jan 2004 Posts: 40 Topics: 16 Location: Bangalore
|
Posted: Fri May 21, 2004 3:09 pm Post subject: Unique records from Table in Cobol using occurs |
|
|
Hi,
I have 3 fields defined in a table using occurs clause and I will move the data into that table and while reading that table using arrays I would like to retrieve the unique rows from the table. This requirement is to be coded in the COBOl only otherwise I would have used sysncsort.
I have the data like this :
Field-1 Field-2 Field-3
===== ========= ==========
Life 04/04/2001 07/31/2005
Life 09/16/1997 03/31/2005
Life 04/04/2001 07/31/2005
Life 09/16/1997 03/31/2005
Life 11/02/2003 12/31/9999
Life 11/02/2003 12/31/9999
Life 04/04/2001 07/31/2005
Life 11/02/2003 12/31/9999
Output should be like this :
Life 09/16/1997 03/31/2005
Life 04/04/2001 07/31/2005
Life 11/02/2003 12/31/9999
Thanks,
Sateesh |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
sateesh_gontla Beginner
Joined: 23 Jan 2004 Posts: 40 Topics: 16 Location: Bangalore
|
Posted: Fri May 21, 2004 3:54 pm Post subject: |
|
|
Hi Kolusu,
Thx a lot for great help.
Is there any other way to do, Imean any built in option to select the unique records? Why because like this I have another 3 to 4 types of columns where I need to do the same process. The performance of the program is too bad if I am using SEARCH option.
Thanks,
Sateesh |
|
Back to top |
|
|
|
|