# jCL X

Updated: 10/19/2020, 10:24:56 AM
Created: 10/19/2020, 10:24:56 AM
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

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.