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.

Assigning values to SET symbolsTable 57. Summary of Built-In Functions and Operators (continued)Function Type L-E¹ F-I² Result³ Operands³ PageSLL Shift U A A 353SRA Shift U A A 354SRL Shift U A A 354SYSATTRA Information retrieval U C C 374SYSATTRP Information retrieval U C C 374UPPER String manipulation U U C C 375X2A Representation conversion U A C 354X2B⁴ Representation conversion U C C 375X2C⁴ Representation conversion U C C 375X2D Representation conversion U C C 376XOR Logical U A A 355XOR Logical U B B 362XOR NOT Logical U B B 362Notes:1. If a U is in this column, the function is available in the “logical-expression” format.2. If a U is in this column, the function is available in the “function-invocation” format.3. Possible values in these columns are:A ArithmeticB BinaryC Character4. For these functions, the maximum length of the operand (and output) is the maximumstring length that the assembler supports, currently 1024.SETAinstructionThe SETA instruction assigns an arithmetic value to a SETA symbol. You canspecify a single value or an arithmetic expression from which the assemblercomputes the value to assign.You can change the values assigned to an arithmetic or SETA symbol. This lets youuse SETA symbols as counters, indexes, or for other repeated computations thatrequire varying values.►► variable_symbol SETA expression ►◄346 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>variable_symbolis a variable symbol.A global variable symbol in the name field must have been previously declaredas a SETA symbol in a GBLA instruction. Local SETA symbols need not bedeclared in a LCLA instruction. The assembler considers any undeclaredvariable symbol found in the name field of a SETA instruction as a local SETsymbol. The variable symbol is assigned a type attribute value of N.expressionis an arithmetic expression evaluated as a signed 32-bit arithmetic value that is

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

Saved successfully!

Ooh no, something went wrong!