# jCL X
Updated: 2/24/2021, 3:51:59 PM
Created: 2/24/2021, 3:51:59 PM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)
Tags: jcl
# Description
The command halts execution of the program and returns control to the shell.
X{text}{+}
1
where:
- text is any text to be displayed on exit.
- + suppress a NEWLINE at exit or after text output.
# Note
The X command returns control directly to the shell.
# Example
F-OPEN 1 SALES
XCannot Open SALES file!
1
2
2
The X command stops execution of the program if the file SALES cannot be opened, and displays a suitable message.
See also List processing
Back to jCL.