NET/MASTER Management Services (MS) Operator's Guide

Sample NCL Procedure
Automating Operations Tasks With NCL Procedures
106379 Tandem Computers Incorporated 10–5
Suppose you create an NCL procedure with a file name of SETUP in Edit Services that
contains the following:
setup: PROCEDURE
CMD "PROFILE CMDKEEP=NO"
CMD "EQUATE MSGOFF PROFILE EMS=NO MONMSG=NO NCLTEST=YES"
CMD "EQUATE MSGON PROFILE EMS=WARN MONMSG=YES"
CMD "EQUATE NY ROUTE NM1EAS+"
CMD "EQUATE LA ROUTE NM2WES+"
CMD "EQUATE SM MSG ALL+"
CMD "FK SF13 SUFF,+FROM JENN"
CMD "FK SF14 IMM,K;;SHOW USERS"
CMD "FK SF15 IMM,SHOW LINKS"
IF &SYS.OCS.IDO \= "PROD" THEN DO
CMD "-OCSID PROD"
CMD MSGON
CMD NRDRET
CMD "PROFILE PREFSYS=YES"
CMD "PROFILE NRDELCH=$"
CMD "PROFILE DELCHAR=^"
CMD "SHOW LINKS"
END
ELSE DO
CMD "-OCSID TEST"
CMD MSGOFF
CMD "PROFILE NRDELCH=/"
CMD "PROFILE DELCHAR=\"
CMD "SHOW NCL"
END
END setup
To cause this procedure to be executed automatically whenever you enter OCS, enter
the following command in the OCS command input line and press the ENTER key:
PROFILE INITCMD="START SETUP"
The PROFILE INITCMD command causes the value in the Initial OCS Command field
in your user ID definition record to be replaced by START SETUP.
Note Contrast the PROFILE INITCMD and PROFILE MSGPROC commands. The PROFILE MSGPROC
command does not change the value of the Message Procedure field in your user ID definition record.