Skip to main content

Appendix A: The HASP Spooling System

HASP is a spooling-queuing-scheduling system used in conjunction with IBM OS/360 to aid in processing of batch jobs. The main purpose of HASP is to increase throughput by minimizing I/O wait time and providing a priority scheduling scheme whereby shorter jobs are chosen for processing over longer jobs.

There are several stages of processing, or functions, within HASP. At any instant, a given job is either in some stage of processing, in which case the job is said to be active, or it is waiting to be processed by some function, in which case it is said to be queued for that function. Jobs to be processed by a function are selected from the queue of jobs waiting for that function, in order of decreasing priority. A job's priority is determined by its estimated CPU tine and volume of output. The result is that smaller jobs are selected for processing over larger jobs, and therefore spend less time in the system.

The HASP remote user is provided with a virtual operator's console. Over this console he may enter HASP operator commands to display information about the system in general, and to exercise control over his terminal and his jobs. HASP sends messages to his console in response to his commands, and to inform him of conditions concerning him as they arise. HASP commands have the following general form:

$ <verb> <operand1>,<operand2>,...,<operandn>
where
<verb> = a single character verb which
identifies the general function
to be performed

<operand> = identification of the object to
be displayed or acted upon.

Zero or more operands may be present, depending on the command, and commas are used to separate operands when more than one is used. In general, alphabetics may be entered in either upper or lower case, and for text outside paired apostrophes, blanks may be inserted at any point desired. Apostrophes intended as text characters must appear in duplicate.

Every HASP command ellicts one or more responses. The response "OK" is used in many cases to acknowledge the command and to signify that the requested action has been taken or initiated. In the later case, an information message will be issued when the request is completed.

Every HASP console message begins with the text 'S HH.MM.SS' or 'S*HH.MM.SS', where HH.MM.SS is the time of day in hours, minutes, and seconds, and in 24 hour clock.

Many commands display job status information as a response. The format of this standard response is as follows:

jobs queued for processing:
JOB jjj jobname AW EXEC class PRIO prio HOLD
PRINT rem PURGE
PUNCH rem *DUP*
PURGE

jobs being processed:
JOB jjj jobname EXECUTING class PRIO prio HOLD
ON DEVICE dev PURGE
IS PURGING

where
jjj = HASP assigned job number
jobname = OS jobname
AW = 'AWAITING'
class = job's job class
prio = job's HASP internal priority
rem = terminal number of remote terminal
where job is queued to print or punch
dev = device name
HOLD = signifies job is in hold status, or
will be at completion of current
function
PURGE = signifies job will be purged at
completion of current function
*DUP* = signifies job cannot begin execution
until another job with same jobname
completes

The following is a brief description of those HASP operator commands that may be issued by a remote user (for a more complete description, see NIC #16306):

SDA                   Display status information on all active jobs

SDF [,rem] Display number of jobs queued for special forms

SDN [,queue] Display status information on all queued jobs

SDQ Display number of queued jobs

SCJ jjj Delete job immediately

SKJ jjj Issue OS CANCEL and delete job
immediately

SPJ jjj Delete job after current function

SDJ jjj Display job status information

SD'jobname Display job status information

SB device,pages Backspace device

SC device Delete current function on device

SF device,pages Forward space device

SDP device Display job number of job on device

SDI Display status and classes of initiators
SDLINE rem Display status of remote terminal

SDRM rem Display status of remote terminal

SDU Display status of local unit record
devices

SDM rem,'message' Display message to remote console