11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Substring notationC2X Format: Function-invocationOperands: CharacterOutput: C2X(’charstring’) converts the character-string argument tohexadecimal characters representing the same bit pattern. Null argumentsreturn a null string.If the result is not too long, the length of the result is two times the lengthof the ’charstring’ argument.ExamplesC2X(’’) has value ’’C2X(’n’) has value ’00’C2X(’1’) has value ’F1’C2X(’a’) has value ’81’C2X(’1234567R’) has value ’F1F2F3F4F5F6F7D9’D2B Format: Function-invocationOperands: Character|||Output: D2B(’decstring’) converts an argument string of optionallysigned decimal characters to a string of 32 ’0’ and ’1’ charactersrepresenting a bit string with the same binary value. The value ofdecstring must be representable as a 32-bit binary integer. A nullargument string returns a null string.ExamplesD2B(’’) has value ’’D2B(’0’) has value ’00000000000000000000000000000000’D2B(’+5’) has value ’00000000000000000000000000000101’D2B(’1022’) has value ’00000000000000000000001111111110’D2B(’-7’) has value ’11111111111111111111111111111001’D2C Format: Function-invocationOperands: Character372 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>Output: D2C(’decstring’) converts an argument string of optionallysigned decimal characters to a string of four characters whose byte valuesrepresent the same binary value. The value of decstring must berepresentable as a 32-bit binary integer. The argument string may not benull.ExamplesD2C(’’) indicates an errorD2C(’0’) has value ’nnnn’ (4 EBCDIC null bytes)D2C(’126’) has value ’nnn=’D2C(’247’) has value ’nnn7’D2C(’23793’) has value ’nn*1’D2C(’-7’) has value ’fff9’ (f=byte of all 1-bits)D2X Format: Function-invocationOperands: CharacterOutput: D2X(’decstring’) converts an argument string of optionallysigned decimal characters to a string of eight hexadecimal characterswhose digits represent the same hexadecimal value. The value ofdecstring must be representable as a 32-bit binary integer. The argumentstring may not be null.Examples

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!