NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.ALLPARMS
System Variables
5–8 106126 Tandem Computers Incorporated
&SYS.ALLPARMS The &SYS.ALLPARMS system variable contains a single string that holds the values of
all parameters entered when an NCL procedure is invoked. There is no practical limit
to the size of this string.
If the procedure is invoked without parameters, &SYS.ALLPARMS is set to null.
The NCL procedure can refer to the parameters passed to it by individual variable
names. These variables have the names &1, &2, …, through &n, where n is the
number of parameters.
&SYS.ALLPARMS
Considerations
&SYS.ALLPARMS converts all values to uppercase.
See also &SYS.PARMCNT, which holds the number of parameters passed to an
NCL process.
Examples
In the following example, the value of &SYS.ALLPARMS remains unchanged when
internal or external procedures are called. It has whatever values are supplied as
parameters when an NCL procedure MAINPROC is invoked by the commands START or
EXEC:
MAINPROC:PROCEDURE
&A = "CALLED FROM AN NCL PROCEDURE"
&B = "ALLPARMS"
CALL SUBPROC1(&A,&B)
CALL SUBPROC2(&A,&B)
SUBPROC1:PROCEDURE
SAY "VALUE OF &SYS.ALLPARMS FROM NESTED PROC = "
&SYS.ALLPARMS
END SUBPROC1
END MAINPROC
SUBPROC2:PROCEDURE
SAY "VALUE OF &SYS.ALLPARMS FROM EXT PROC = " &SYS.ALLPARMS
END SUBPROC2