View previous topic :: View next topic
|
Author |
Message |
Priya Karthik
New User
Joined: 12 Aug 2021 Posts: 2 Location: India
|
|
|
|
I have a requirement where 2 sequential files needs to be compared using a alphanumeric key and matched records need to be written to a output file. I have seen logics where numeric keys are compared. is it possible to compare the alphanumeric in the same way as below?
Match-para:
-------------
if key1=key2
write output
if key1<key2
read inputfile1
perform match-para
if key2>key1
read inputfile2
perform match-para
Kindly help me whether i can follow the same condition checking for alphanumeric as well? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1316 Location: Vilnius, Lithuania
|
|
|
|
You're an expert? Posting on a forum for experts?
Why the flucking hell couldn't an expert like you test it yourself?
'nuff said! |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
Welcome!
Moved the topic to Student forum.
I would suggest you give a try and see what happens. Besides you can do any of such operations using DFSORT much quicker than COBOL programming. Think about that too. |
|
Back to top |
|
|
Priya Karthik
New User
Joined: 12 Aug 2021 Posts: 2 Location: India
|
|
|
|
I will do the testing. My requirement is not to use DFSORT and need to compare using COBOL programming. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
So then definitely you must code and try. |
|
Back to top |
|
|
|