Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

CANCEL-PROGRAM

&pagelevel(3)&pagelevel

Cancel program run

Component:

BLSSERV                                                                                                         

Functional area:

Program control

Domain:

PROGRAM

Privileges:

STD-PROCESSING
HARDWARE-MAINTENANCE
SAT-FILE-EVALUATION
SAT-FILE-MANAGEMENT
SECURITY-ADMINISTRATION

Function

The CANCEL-PROGRAM command cancels a program run and releases all the user memory reserved until that time by the dynamic binder loader DBL and the static loader ELDE.
If the program contains an STXIT routine for the ABEND event class, it is activated.
The status indicator of any program-monitoring job variable is set to ‘$A’.

Format

CANCEL-PROGRAM                                                       Alias: CNPG


The CANCEL-PROGRAM command has no operands and is executed immediately.

Return codes

(SC2)

SC1

Maincode

Meaning


0

CMD0001

Command executed

2

0

BLS0554

Warning: no program was loaded


64

CMD0216

User has no authorization for the command


64

BLS0553

The loaded program may not be unloaded