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 notationX2C(’’) has value ’’ (null string)X2C(’F3’) has value ’3’X2C(’0’) has value ’n’ (EBCDIC null character)X2C(’F1F2F3F4F5’) has value ’12345’X2C(’000F1’) has value ’nn1’X2D Format: Function-invocationOperands: CharacterOutput: X2D(’hexstring’) converts its argument string of at most eighthexadecimal characters to one to ten decimal characters preceded by a plusor minus sign, representing the value of the argument. Null argumentsreturn ’+0’. For example:X2D(’’) has value ’+0’X2D(’91’) has value ’+145’X2D(’000F1’) has value ’+241’X2D(’7FFFFFFF’) has value ’+2147483647’X2D(’FFFFFFF1’) has value ’-15’┌───────────┐│││Character ││Expression │││└─────┬─────┘│ Can be any of├─────────────┬─────────────┬──────────────────────┐ ┌─────┴─────┐ ┌─────┴──────┐ ┌────┴──────────────┐ ┌─────┴────────┬────────────┐│ │ │ │ │ │ │ │ ││ Character │ │ CharExpr │ │ Character-Valued │ │ (Duplication │ CharExpr ││ Value │ │ . ◄──┐ │ │ Built-In Function │ │ Factor) │ ││ │ │ CharExpr │ │ │ │ │ │ │└─────┬─────┘ └──────────┼─┘ └───────────────────┘ └──────────────┴────────────┘│││ └── Period (.) = Concatenation Character Can be any of├─────────────┬─────────────┬─────────────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐│ Substring │ │ Variable │ │ Self- │ │ Attribute¹││ │ │ Symbol │ │ Defining │ │ <strong>Ref</strong>erence ││ │ │ │ │ Term │ │ ││ │ │ │ │ │ │ T’ or O’ │└───────────┘ └───────────┘ └───────────┘ └───────────┘Figure 45. Defining character (SETC) expressionsNotes:1. The attribute reference term must not be preceded by a duplication factor.Evaluation of character expressions: The value of a character expression is thecharacter string within the enclosing single quotation marks, after the assemblercarries out any substitution for variable symbols.Character strings, including variable symbols, can be concatenated to each otherwithin a character expression. The resultant string is the value of the expression.Notes:1. Use two single quotation marks to generate a single quotation mark as part ofthe value of a character expression.376 <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!