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.

&SYSLIST System Variable Symbolpositional operands in a macro call. You can also refer to positional operands forwhich no corresponding positional parameter is specified in the macro prototypestatement.The local-scope system variable symbol &SYSLIST is assigned a read-only valueeach time a macro definition is called.&SYSLIST refers to the complete list of positional operands specified in a macroinstruction. &SYSLIST does not refer to keyword operands. However, &SYSLISTcannot be specified as &SYSLIST without a subscript. One of the two followingforms must be used for references or as a point of substitution:1. &SYSLIST(n) can be used to refer to the n-th positional operand2. If the n-th operand is a sublist, then &SYSLIST(n,m) can be used to refer to them-th operand in the sublist.3. When referring to multilevel (nested) sublists in operands of macroinstructions, refer to elements of inner sublists by using the applicable numberof subscripts for &SYSLIST.The subscripts n and m can be any arithmetic expression allowed in the operand ofa SETA instruction (See “SETA instruction” on page 346). The subscript n must begreater than or equal to 0. The subscript m and any additional subscripts after mmust be greater than or equal to 1.The examples below show the values assigned to &SYSLIST according to the valueof its subscripts n and m.Macro instruction:------------------NAME MACALL ONE,TWO,(3,(4,5,6),,8),,TEN,()|Use Within aMacro Definition: Value See note:--------------------- ------------ ---------&SYSLIST(2)TWO&SYSLIST(3,1) 3&SYSLIST(3,2,2) 5&SYSLIST(4) Null 1&SYSLIST(12) Null 1&SYSLIST(3,3) Null 2&SYSLIST(3,5) Null 2&SYSLIST(2,1) TWO 3&SYSLIST(2,2)Null&SYSLIST(0) NAME 4&SYSLIST(3) (3,(4,5,6),,8)&SYSLIST(11) ()&SYSLIST(11,1) Null 2Notes:1. If the position indicated by n refers to an omitted operand, or refers to an entrypast the end of the list of positional operands specified, the null characterstring is substituted for &SYSLIST(n).2. If the position (in a sublist) indicated by the second subscript, m, refers to anomitted entry, or refers past the end of the list of entries specified in the sublistreferred to by the first subscript n, the null character string is substituted for&SYSLIST(n,m).274 <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!