Page 1 of 1

PL/1 hex format

PostPosted: Sun Jan 18, 2015 11:38 pm
by Puja
Hi,
I am new to PL/1 and I need to know how to convert a character into hexadecimal format and how do I use it in the 'if' condition. Can any1 explain me with suitable example.

Thanks,
Puja

Re: PL/1 hex format

PostPosted: Mon Jan 19, 2015 3:04 am
by prino
Any1?

Please use professional language, and explain your requirement more clearly.

Why would you want to convert character data to hexadecimal and use it in a compare, when you can compare character data directly to hexadecimal ('nn'bx) data?

Re: PL/1 hex format

PostPosted: Tue Jan 20, 2015 6:41 pm
by Akatsukami
Character data are hexadecimal data; as Mr. Prins indicates, comparisons between character and hexadecimal literals are trivial.

If you mean that you wish to convert, e.g., 'A' into 'C1', I suggest looking at the HEX and HEXIMAGE functions.