NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.PSEND.RC
System Variables
106126 Tandem Computers Incorporated 5–93
&SYS.PSEND.ID The &SYS.PSEND.ID system variable contains the ID of the current local PSEND
identifier.
&SYS.PSEND.ID
Consideration
See also the other &SYS.PSEND system variables in this section.
Example
The following example displays a warning message if the &SYS.PSEND.ID system
variable is equal to IDD1, indicating that this ID is not the correct one for the current
message:
PSERROR3: PROCEDURE
IF &SYS.PSEND.ID = IDD1 THEN
SAY "The current ID is IDD1 and should be IDD2"
END PSERROR3
&SYS.PSEND.RC The &SYS.PSEND.RC system variable contains the return code resulting from the last
PATHSEND operation.
&SYS.PSEND.RC
Considerations
The value of the return code depends on the operation.
See also the PSEND CLOSE, PSEND OPEN, PSEND SEND, and PSEND SET verbs
in Section 3, “Verbs.”
See also the other &SYS.PSEND system variables in this section.
Example
The following example displays a message if the &SYS.PSEND.RC system variable is
equal to 16, indicating an error has occurred:
PSERROR4: PROCEDURE
IF &SYS.PSEND.RC = 16 THEN
SAY "An error has occurred"
END PSERROR4