View previous topic :: View next topic |
Author |
Message |
victor Beginner
Joined: 21 Sep 2005 Posts: 14 Topics: 9
|
Posted: Wed Sep 21, 2005 6:56 am Post subject: replacing hexadecimal |
|
|
during the validation i found the hexadecimal values that is comp1 and comp2 values in my file ..i want to replace it with characters ..plse suggest me the programming logic that converts all hex values to characters....waiting for ur reply _________________ VICTOR |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Sep 21, 2005 7:00 am Post subject: |
|
|
victor
Quote: |
....waiting for ur reply
|
I don't want to be Harsh on you. but don't demand for immediate response.
Thanks,
Phantom |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Sep 21, 2005 7:07 am Post subject: |
|
|
Once you read the dataset (using COBOL) move the numeric fields (comp1 & comp2) to some working storage variables defined with the same picture clause but without COMP.
This should be simplest way. Since your file has both COMP1 and COMP2 you cannot have a single convertion logic to convert everything back to readable numeric digits.
Thanks,
Phantom |
|
Back to top |
|
|
ANIL SARATHY Beginner
Joined: 30 Aug 2005 Posts: 88 Topics: 3 Location: Syracuse,New york
|
Posted: Wed Sep 21, 2005 7:26 am Post subject: |
|
|
COMP-1 is single word floating and COMP-2 is double word floating
for COMP-1 move value to a S9(9) or more.
for COMP-2 move value to a S9(15) or more.
_________________ Anil Sarathy |
|
Back to top |
|
|
|
|