View previous topic :: View next topic
|
Author |
Message |
ranjitbhingare
New User
Joined: 30 Nov 2005 Posts: 94 Location: PUNE
|
|
|
|
Hi,
I have hex data in a PIc X(50) field and its causing some problem with some external printing software of the client.
Is there a way to convert hex data to char using cobol ?
I tried to use
INSPECT STRING1 CONVERTING X'15' TO X'40'.
but it didn't work.
Thanks & Regards,
Ranjit |
|
Back to top |
|
|
ranjitbhingare
New User
Joined: 30 Nov 2005 Posts: 94 Location: PUNE
|
|
|
|
INSPECT STRING1 REPLACING X'15' BY X'40'. did work.
previously it did not work because of my stupid mistake. I should have used INSPECT twice in the program as data from 2 strings was populated in the final variable depending on condition and I inspected only 1 string.
Thanks & Regards.
Ranjit |
|
Back to top |
|
|
|