MPE/iX Intrinsics Reference Manual (32650-90875)

44 Chapter4
Command Definitions (ABORTSESS - FCLOSE)
ABORTSESS
ABORTSESS
NM and CM callable.
Enables a program to abort a specified job or session from the system.
Syntax
I16V I32V I16A
ABORTSESS(
jsid,jsnum,jsstatus
);
Parameters
jsid
16-bit signed integer by value (required)
Indicates whether the
jsnum
parameter refers to a job number or a session
number:
Value Meaning
1
Session number
2 Job number
Because jobs and sessions can have identical numbers, the
jsid
parameter is required to indicate whether
jsnum
describes a job or a
session.
jsnum
32-bit signed integer by value (required)
Passes the job or session number of the job/session to be aborted.
jsstatus
16-bit signed integer array (required)
Returns a two-element array containing status information. The second
element is reserved for the operating system. The first element returns
one of the following status values:
Value Meaning
0 Successful
1
Jobsecurity set to high, or job/session not yours
2 Job/session does not exist
3 Job/session being introduced and cannot be aborted when in the INTRO
state
Operation Notes
All resources held by the aborted job/session are released, and any I/O activity is
terminated. Although the job/session is abnormally terminated, the operating system
issues log records and updates CPU and connect times. The following message is displayed