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 notation||||ExamplesA2D(0) has value ’+0’A2D(241) has value ’+241’A2D(16448) has value ’+16448’A2D(-3) has value ’-3’A2X Format: Function-invocationOperands: ArithmeticOutput: A2X(aexpr) converts the value of its arithmetic argument to astring of eight hexadecimal characters.ExamplesA2X(0) has value ’00000000’A2X(10) has value ’0000000A’A2X(257) has value ’00000101’A2X(1022) has value ’000003FE’A2X(-7) has value ’FFFFFFF9’B2C Format: Function-invocationOperands: CharacterOutput: B2C(’bitstring’) converts the bit-string character argument tocharacters representing the same bit pattern. Null arguments return a nullstring.If needed, the argument string is padded internally on the left with zerosso that its length is a multiple of eight.The operand must contain only ones and zeros. Any other value causes themessage ASMA214E to be generated.ExamplesB2C(’11110011’) has value ’3’B2C(’101110011110001’) has value ’*1’B2C(’0’) has value ’n’ (EBCDIC null character)B2C(’00010010001’) has value ’nj’B2C(’000000000’) has value ’nn’ (two EBCDIC nulls)B2C(’’) has value ’’ (null string)B2D Format: Function-invocationOperands: CharacterOutput: B2D(’bitstring’) converts a bit-string argument of at most 32 ’0’and ’1’ characters to one to ten decimal characters preceded by a plus orminus sign, representing the value of the argument. Null arguments return’+0’.ExamplesB2D(’’) has value ’+0’B2D(’00010010001’) has value ’+145’B2D(’11110001’) has value ’+241’B2D(’01111111111111111111111111111111’) has value ’+2147483647’B2D(’11111111111111111111111111110001’) has value ’-15’B2X Format: Function-invocationOperands: CharacterOutput: B2X(’bitstring’) converts the bit-string argument to hexadecimalcharacters representing the same bit pattern. Null arguments return a nullstring.370 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>

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

Saved successfully!

Ooh no, something went wrong!