NET/MASTER Network Control Language (NCL) Programmer's Guide
Passing Parameters to Procedures and Functions
Procedures and Functions
106160 Tandem Computers Incorporated 6–23
Smart Parsing. With smart parsing, NCL uses blanks and commas (,) to delimit
parameters. However, you can use a quoted string to preserve blanks and commas
and so pass blanks and commas as part of a parameter. You can double a particular
quote to pass a single instance of the quote as part of a parameter.
The following example shows a procedure declaration that specifies smart parsing:
zex0613n: PROCEDURE NOFOLD EXTPARSE SMART
/* Smart parsing */
SAY "&1 is "&1
SAY "&2 is "&2
SAY "&3 is "&3
SAY "&4 is "&4
SAY "Value of &SYS.PARMCNT is "&SYS.PARMCNT
SAY "Value of &SYS.ALLPARMS is "&SYS.ALLPARMS
END zex0613n
The following screen shows the results of executing the procedure:
(11:47) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX0613N One, Two, "Three, Four"
&1 is One
&2 is Two
&3 is Three, Four
&4 is
Value of &SYS.PARMCNT is 3
Value of &SYS.ALLPARMS is One, Two, "Three, Four"
NNM1005 START ZEX0613N PROCESSING COMPLETE. NCLID 002067
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>