I am facing the following difficulty in comparing the file using easytrieve. Could anyone guide me on the same?
- File 1 has sorted records by key values
- File 2 has sorted records by key values with duplicate
I need to have the duplicate records in file2 when it founds a match in file 1
EX
File 1(1st 3 byte is Key field)
111 AAA
222 BBB
333 CCC
444 DDD
File 2(1st 3 byte is key field)
111 AAA
222 BBB
222 BBB
222 BBB
555 EEE
Expected Output:
111 AAA
222 BBB
222 BBB
222 BBB
Could anyone help me if there are any possibility/keywords?
Regards,
Gopi
Easytreive compare Logic with Duplicate
-
- Posts: 3
- Joined: Mon Jun 21, 2010 3:48 pm
- Skillset: COBOL,JCL,EASYTRIEVE,CICS and REXX
- Referer: Collegue
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Easytreive compare Logic with Duplicate
Hello,
Suggest you read about MATCHED in the documentation.
Suggest you read about MATCHED in the documentation.
Hope this helps,
d.sch.
d.sch.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 1429
-
by enrico-sorichetti
View the latest post
Wed Jun 16, 2021 10:26 pm
-
-
How can I learn the business logic of my job?
by Atari2601 » Thu Aug 19, 2021 9:40 pm » in Career Guidance - 0
- 8305
-
by Atari2601
View the latest post
Thu Aug 19, 2021 9:40 pm
-
-
- 4
- 2266
-
by sergeyken
View the latest post
Mon Jun 26, 2023 12:56 am
-
-
Finding duplicate in variable lenght string in cobol
by kanipriya2785 » Fri Jun 17, 2022 10:02 pm » in IBM Cobol - 8
- 3525
-
by sergeyken
View the latest post
Wed Jun 22, 2022 3:10 am
-
-
-
compare substring in the same record
by samb01 » Mon Jun 12, 2023 1:08 pm » in DFSORT/ICETOOL/ICEGENER - 10
- 2949
-
by sergeyken
View the latest post
Tue Jun 13, 2023 11:04 pm
-