Download OpenVMS DCL Dictionary: A–M
Transcript
IF This example shows a command procedure that tests whether a parameter was passed. The GOTO command passes control to the label specified as the parameter. If the procedure is executed with a parameter, the procedure uses that parameter to determine the label to branch to. For example: @TESTCOM A When the procedure executes, it determines that P1 is not null, and branches to the label A. Note that the EXIT command causes an exit from the procedure before the label B. 3. $ SET NOON . . . $ LINK CYGNUS,DRACO,SERVICE/LIBRARY $ IF $STATUS $ THEN $ RUN CYGNUS $ ELSE $ WRITE SYS$OUTPUT "LINK FAILED" $ ENDIF $ EXIT This command procedure uses the SET NOON command to disable error checking by the command procedure. After the LINK command, the IF command tests the value of the reserved global symbol $STATUS. If the value of $STATUS indicates that the LINK command succeeded, then the program CYGNUS is run. If the LINK command returns an error status value, the command procedure issues a message and exits. DCLI–269
Related documents
PDF Vol. I
HP OpenVMS DCL Dictionary: A–M - Hewlett Packard Enterprise
PDF Part I
HP OpenVMS DCL Dictionary - Hewlett Packard Enterprise Support
OpenVMS DCL Dictionary: N–Z
HP OpenVMS DCL Dictionary: N–Z - Hewlett Packard Enterprise
PDF Vol. II
OpenVMS Master Index
CHARON-VAX / Linux for Hobbyists
OpenVMS System Messages and Recovery Procedures
PDF Vol. I
Airless manual gun Translation of the Original