# jCL X

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
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

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.