NET/MASTER Network Control Language (NCL) Programmer's Guide
Passing Parameters to Procedures and Functions
Procedures and Functions
6–22 106160 Tandem Computers Incorporated
Parsing Parameters
The EXTPARSE keyword specifies how you want a parameter string to be parsed
when it is passed to a procedure. EXTPARSE has two values: SIMPLE (for simple
parsing) and SMART (for smart parsing).
Simple Parsing. With simple parsing, NCL uses blanks to delimit parameters. Quotes
(" ") and commas (,) become part of the parameters.
The following example shows a procedure declaration that specifies simple parsing:
zex0612n: PROCEDURE NOFOLD EXTPARSE SIMPLE
/* Simple 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 zex0612n
The following screen shows the results of executing the procedure:
(11:43) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX0612N One, Two, "Three, Four"
&1 is One,
&2 is Two,
&3 is "Three,
&4 is Four"
Value of &SYS.PARMCNT is 4
Value of &SYS.ALLPARMS is One, Two, "Three, Four"
NNM1005 START ZEX0612N PROCESSING COMPLETE. NCLID 002065
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>