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.

&SYSLIST System Variable Symbol3. If the n-th positional operand is not a sublist, &SYSLIST(n,1) refers to theoperand. However, &SYSLIST(n,m), where m is greater than 1, will cause thenull character string to be substituted.4. If the value of subscript n is 0, then &SYSLIST(n) is assigned the valuespecified in the name field of the macro instruction, except when it is asequence symbol.Attribute references can be made to the previously described forms of &SYSLIST.The attributes are the attributes inherent in the positional operands or sublistentries to which you refer. However, the number attribute of &SYSLIST(N'&SYSLIST) is different from the number attribute described in “Data attributes”on page 321. One of two forms can be used for the number attribute:v To indicate the number of positional operands specified in a call, use the formN'&SYSLIST.v To indicate the number of sublist entries that have been specified in a positionaloperand, use the form N'&SYSLIST(n).v To indicate the number of entries in nested sublists, specify the appropriate setof subscripts need to reference the selected sublist.Notes:1. N'&SYSLIST includes any positional operands that are omitted. Positionaloperands are omitted by coding a comma where an operand is expected.2. N'&SYSLIST(n) includes those sublist entries specifically omitted by specifyingthe comma that would normally have followed the entry.3. If the operand indicated by n is not a sublist, N'&SYSLIST(n) is 1. If it isomitted, N'&SYSLIST(n) is 0.The COMPAT(SYSLIST) assembler option instructs the assembler to treat sublists inmacro instruction operands as character strings, not sublists. See the section“COMPAT” in the <strong>HLASM</strong> Programmer’s Guide for a description of theCOMPAT(SYSLIST) assembler option.Examples of sublists:Macro Instruction N'&SYSLISTMACLST 1,2,3,4 4MACLST A,B,,D,E 5MACLST ,A,B,C,D 5MACLST (A,B,C),(D,E,F) 2MACLST 0MACLST KEY1=A,KEY2=B 0MACLST A,B,KEY1=C 2MACSUB A,(1,2,3,4,5),B 5MACSUB A,(1,,3,,5),B 5MACSUB A,(,2,3,4,5),B 5MACSUB A,B,C 1MACSUB A,,C 0MACSUB A,(),C 1MACSUB A,KEY=(A,B,C) 0MACSUB 0N'&SYSLIST(2)&SYSLOC System Variable SymbolUse &SYSLOC in a macro definition to generate the name of the location counterin effect. If you have not coded a LOCTR instruction between the macroChapter 7. How to specify macro definitions 275

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

Saved successfully!

Ooh no, something went wrong!