View previous topic :: View next topic
|
Author |
Message |
Deepthi Reddy
New User
Joined: 30 Apr 2008 Posts: 3 Location: Bangalore
|
|
|
|
I have 2 files in easytrieve. I have to compare 2 fileds from both the fileds and need to write to output files. But in the first input file the fileds are.. alphanumeric. Eg:
I-DEP-NO 15 2 A
I-CLM-ID 43 14 A
and in the second input file these 2 fileds are..packed decimala nd binary..
eg:
DEP-NO 13 2 B
CLM-ID 15 6 P
Could you please suggest me how to compare these fields?
Deepthi |
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
did you search in this forum before..
try this link ,
may helpfull..http://www.jmit.com/os390/docs/CA/EZTP-62-UserGuide.pdf
i think you may get if you search in this forum then internet |
|
Back to top |
|
|
anandinmainframe
Active User
Joined: 31 May 2007 Posts: 171 Location: India
|
|
|
|
Hi,
Declare working storage for each field as numeric
W-DEP-NO 2 N
W-CLM-ID 14 N
move that I-DEP-NO 15 2 A
I-CLM-ID 43 14 A to the working storage (i guess 15 43 is the starting position)in the same way do it for the second easytrieve.
now you can compare and write it to an output file. |
|
Back to top |
|
|
Deepthi Reddy
New User
Joined: 30 Apr 2008 Posts: 3 Location: Bangalore
|
|
|
|
Thanks for you reply. But I have one more question. I need to compare the both input files with the dep-code and clim-id fields then have to write to third file. But the problem is when we open the input files (JOB INPUT stmt) that time need to give key fileds (comparing fileds). So I think we cannot move to them to the working storage fileds and compare.
Is there any other way pls let me know...
Deepthi. |
|
Back to top |
|
|
anandinmainframe
Active User
Joined: 31 May 2007 Posts: 171 Location: India
|
|
|
|
Hi,
I am not getting you can you give me some more info on this because this easytrieve is written to compare and write to an output file is that correct? |
|
Back to top |
|
|
Deepthi Reddy
New User
Joined: 30 Apr 2008 Posts: 3 Location: Bangalore
|
|
|
|
Hi,
Yes you are correct..
I got the idea for my question.. Thanks alot for ur help..
Thanks in Advance,
Deepthi |
|
Back to top |
|
|
|