11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Substring notationSuppose the SETC variable &C contains the characters "&&’’&" (twoapostrophes, three ampersands):DOUBLE(’&C’) has value "&&&&’’’’&&"LOWERFormat: Logical-expression, function-invocationOperands: CharacterOutput: LOWER(’cexpr’) or (LOWER ’cexpr’) converts the alphabeticcharacters A-Z in the argument to lower case, a-z. Null arguments return anull string.|ExamplesLOWER(’aBcDefG’) has value ’abcdefg’SIGNEDFormat: Logical-expression, function-invocationOperands: ArithmeticOutput: SIGNED(aexpr) or (SIGNED aexpr) converts its arithmetic argumentto a decimal character string representation of its value, with a leadingminus sign if the argument is negative.ExamplesSIGNED(10) has value ’10’SIGNED(-10) has value ’-10’Note: The SIGNED function creates properly signed values for display,whereas assigning a SETA value to a SETC variable produces only themagnitude of the SETA value. For example:&A SETA 10 &A has value 10&C SETC ’&A’ &C has value ’10’&A SETA -10 &A has value -10&C SETC ’&A’ &C has value ’10’ (unsigned)SYSATTRAFormat: Function-invocationOperands: Character|||||Output: SYSATTRA(’symbol’) returns the assembler-type value for thespecified symbol.v The 2 to 4 character assembler type is returned, with trailing spacesremoved. For symbols defined in DC and DS statements, the assemblertype includes the type extensions, if any.v Symbols without an assigned assembler type, undefined symbols, andnull arguments return null.ExamplesGiven that symbol Sym1 has previously been assigned an assembler type ofGR, and variable symbol &SName has a value of SYM1, then:SYSATTRA(’Sym1’) has value ’GR’SYSATTRA(’&Sname’) has value ’GR’SYSATTRPFormat: Function-invocationOperands: Character374 <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!