Skip to main content
Previous section   

X

Exits on error and returns to the calling environment.

Synopsis

X [text] [+]

Arguments

text Optional — A message to display to the terminal when exiting a PROC.

Description

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.

Examples

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

See Also

  • Q PROC command

  • U PROC command

Previous section