X [text] [+]
|text||Optional — A message to display to the terminal when exiting a PROC.|
The X PROC command is used to exit a PROC when an error occurs. It can optionally display an error message when exiting. By default, the text string is followed by a line return. The optional + character suppresses the line return following text.
The following examples show the X command exiting the PROC and issuing an error message when an open operation fails. Note that the space between the command name and text is optional.
PQN F-OPEN 7 VOC X Failed Open F-READ 7 MyData
PQN F-OPEN 7 VOC XFailed Open F-READ 7 MyData