Owner`s manual

Page 7-2 Chapter 7
7.2SETTING UP JOBS
When the computer is reset or powered up, it automatically attaches the first job to the
first terminal defined in your system initialization command file. Except for that special
case, however, the computer does not automatically attach any jobs to terminals. If you
want a job to be able to use a terminal for input and output, you must explicitly attach
the job and the terminal. This process involves the use of such commands as ATTACH,
KILL, FORCE, MEMORY, WAIT, etc. (explained below). The SETJOB command
consolidates all these into one easy-to-understand line. The format of the line is:
SETJOB jobname,terminal-name,memory{,command{,command...}}
jobname
is the name of the job you want to start,
terminal-name
is the terminal to
ATTACH it to,
memory
is the amount of memory to assign to the job (you may specify K
and M for kilobytes and megabytes), and
command
is an AMOS command, command
file name, etc. For example:
SETJOB JONSON,EARVIN,150K,JONSON.CMD
JONSON.CMD might contain:
LOG 100,44
SET DSKERR
VER
LOAD MAGIC.PFK
RUN REMIND
SETJOB interprets any comma in the command part of the line as the beginning of a
new AMOS command. This means you cannot refer to a command file in another
account by including an AMOS account number. For example, the SETJOB line:
SETJOB JOB1 TRM1, 200K, JOB1.JIN[100,33]
will fail, because SETJOB will interpret the comma in [100,33] as the beginning of a new
command. To avoid this situation, place any .JIN files to be run by SETJOB in SYS: and
all command files in CMD:. Or, you can assign an ersatz name to the account
containing the .JIN or command file and refer to the ersatz name in SETJOB.
7.2.1Attaching Terminals to Jobs
When the computer first begins to process the system initialization command file, it
automatically attaches the first job listed in the JOBALC command and the terminal
defined by the first TRMDEF command. Except for this special case, however, the
computer does not automatically link jobs with terminals. (When a job is linked to a
terminal, the job and terminal are "attached." When a job is not linked to a terminal, the
job is "detached.")
A detached job must have a terminal attached to it before it can do terminal input or
output. A detached terminal, on the other hand, can be accessed through terminal
System Operator’s Guide to the System Initialization Command File, Rev. 03