View previous topic :: View next topic |
Author |
Message |
arunkumar_e Beginner
Joined: 06 May 2004 Posts: 27 Topics: 16 Location: Bangalore
|
Posted: Wed Mar 02, 2005 12:49 am Post subject: Compare data in two files using REXX |
|
|
Hi Friends,
I am new to the REXX programming, I want to compare two GDGs
say GDG 'A' and GDG 'B'.
Code: | A B
------ --------
A1 a A1 b
A3 a A2 b
A4 a A3 b
A4 b |
now using GDG 'B' i have to write a new file say FILE1 dropping all the rows corresponding to that in GDG 'A' by comparing only the values in the first column.
That is in FILE1 i need to have only A2 b.
is this possible using REXX.
Please let me know
Thanks
Arun |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Mar 02, 2005 1:09 pm Post subject: |
|
|
arunkumar_e,
Was there any specific reason why you chose rexx? It can be done by utilities like Sort.
Let me know if you are interested
Thanks
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
arunkumar_e Beginner
Joined: 06 May 2004 Posts: 27 Topics: 16 Location: Bangalore
|
Posted: Wed Mar 02, 2005 10:58 pm Post subject: |
|
|
Thanks for your response kolusu. please let me know how do we achieve this using sort.
Thanks,
Arun |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Mar 03, 2005 8:45 am Post subject: |
|
|
arunkumar_e,
Please provide me with the following details.
1. What is the LRECL/RECFM of gdg 'A' & gdg 'B'?
2. What is the position and format of the key to be compared?
3. Does any of the files have duplicates?
4. What is the default sort product at your shop?
Thanks
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
arunkumar_e Beginner
Joined: 06 May 2004 Posts: 27 Topics: 16 Location: Bangalore
|
Posted: Mon Mar 07, 2005 12:24 am Post subject: |
|
|
Hi Kolusu ! I Solved the above mentioned problem using Rexx itself, Thanks for ur help.
Arun _________________ Arun
"Genius is one percent inspiration and ninety-nine percent perspiration." -- Thomas A. Edison |
|
Back to top |
|
|
|
|