View previous topic :: View next topic
|
Author |
Message |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
feellikeneo wrote: |
I am sorry that this doesn't work in my case.
I am just comparing these two values from file-1 and file-2 but still then my IF fails |
I hate to be amoung those to tell you, but if the eight byte fields are the same, they will compare equal....
Just before comparing them, display both as in:
DISPLAY '*' field1 '*' field2 '*'
and look at the spool after SET HEX ON....... |
|
Back to top |
|
|
feellikeneo
New User
Joined: 19 Mar 2007 Posts: 73 Location: Chennai
|
|
|
|
ok.. let me try and get back to you |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I'd suggest making sure that RB-INDEX has the correct value and also making sure the table was actually loaded - if the values were moved to the array, but the position in the array was not incremented, the "load" would execute, but the array would not have all of the values.
I'm also confused why
Code: |
| º_ ±Õò |
44129608EC44
F071BDEFFD0F |
does not align propperly. If the entire set was copy/pasted, all 3 lines should have the same width. . .
Is there some reason not to post the content of the 2 files (in hex)? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
William Thompson wrote: |
for example, your "º_ ±Õò" showed up as:
Code: |
º_ ±Õò
9648EC
BD0FFD |
|
Mine didn't align quite correctly either......... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
It should if it is copied from a browse with "hex on". . . .
That of course means the info needs to come from the actual data files rather than the sysout after it has been thru some amount of code. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Dick, to expand a little:
Code: |
| º_ ±Õò |
44129608EC44
F071BDEFFD0F |
Had some "tabbing" in the upper line (with my green card, I'm helpless)...... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Looks like the web page is not using a fixed font even in code sometimes.
Both of the x'4F' characters should have the | over them. . . Bummer.
Maybe we'll hear back from TS as to what the data really is (or what the code is that we may see why the IF is not working). The good news is that the hex values do line up and the "funny little values" won't have any impact on the compare. |
|
Back to top |
|
|
feellikeneo
New User
Joined: 19 Mar 2007 Posts: 73 Location: Chennai
|
|
|
|
Hello everybody,
Apologize me for the delayed response.
I tried moving both the values from file-1 and file-2 to a working storage variable of same level. I moved both to a 77 level variable with PIC clause as X.
I am not sure how it worked for me.. My IF condition is working fine now. I still dont understand what is the difference between moving a variable and comparing them at different level.
Just an info -
I browsed the spool to see what is displayed in SYSOUT. It was different from what is in file (3.4 view), But when we compare the HEX values between the spool data and 3.4 view data, both are same.
I suppose this is because they are non displayable character and so they are displayed differently in spool and 3.4 view.
Thanks for all your suggestion.. You ppl were really fast to help me..
Cheers,
Neo |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome
Thanks for letting us know what you found. |
|
Back to top |
|
|
|