NET/MASTER Network Control Language (NCL) Reference Manual

PSEND SEND
Verbs
106126 Tandem Computers Incorporated 3–159
Considerations
The &SYS.PSEND.RC system variable reflects the result of all PATHSEND
operations within NCL. NCL sets this variable on completion of the PSEND
SEND verb, as follows:
Return Code Meaning
0 Completed successfully.
4 A PATHSEND error occurred. See &SYS.PSEND.PSERROR.
8 A Guardian file system error occurred. See &SYS.PSEND.ERROR.
16 An error occurred. See &SYSMSG for more information.
See also PSEND CLOSE, PSEND OPEN, and PSEND SET.
For information on PATHSEND error codes, refer to the Pathway Application
Programming Guide.
For more information on how to use the PATHSEND interface within an NCL
process, refer to the NonStop NET/MASTER NCL Programmer's Guide.
Examples
The following example sends a message to a Pathway server class and receives a
message from a Pathway server class. The variable &REQ contains the message that is
sent, and the variable &REPLY contains the message that is received:
PSEND SEND ID=ID1 VARS=&REQ TO VARS=&REPLY
The following example first uses the ASSIGN verb to define an MDO using a
user-defined map, then sends a message using this MDO. The reply is received into
another MDO, mapped by using the MAP operand as defined in the PSEND SET verb:
ASSIGN MDO=&RQST. MAP=USERDEF_MAP
PSEND SET ID=ID1 MAP=USERCV_MAP
PSEND SEND ID=ID1 MDO=&RQST. TO MDO=&RPLY.