2-6. RUNNING EDIT 3000 IN BATCH MODE [ EDIT/3000:Reference Manual ] MPE/iX 5.0 Documentation
EDIT/3000:Reference Manual
2-6. RUNNING EDIT/3000 IN BATCH MODE
In batch mode, MPE/3000 and EDIT/3000 commands (and text if desired) are
included with the :JOB command. Unlike sessions, jobs require that the
colon prompt character be included with MPE/3000 com- mands. EDIT/3000
commands in batch mode, however, need not be preceded with the EDIT/3000
prompt character (/) .If prompt characters are included with EDIT/3000
commands in batch mode, they will be listed (two slashes will be printed
by MPE/3000 instead of just one) on the standard list device but ignored
otherwise by EDIT/3000.
An example of running EDIT/3000 in batch mode is shown in Figure 2.2.
(This job includes the same editing operations as illustrated for the
session in Figure 2.1.)
A card reader was used as the input device for the job shown in Figure
2.2 and the cards submitted with the job were as follows:
:JOB MANAGER.SCR
:EDITOR
ADD
THIS IS THE FIRST LINE OF THE WORK FILE
(THE DATA WAS ENTERED FROM CARDS)
// (This card with the two slashes was necessary to terminate the ADD command)
LIST ALL
END
:EOJ
Note that the colon prompt characters were included as the first
character with the MPE/3000 :JOB, :EDITOR, and :EOJ commands but slash
prompt characters were not included with the EDIT/3000 ADD, LIST, and END
commands. EDIT/3000 listed the slash prompt characters on the standard
list device (and would have output two slashes if each command had been
preceded by a slash). Also note that EDIT/3000 listed the line numbers
(1 and 2) even though these (like the slashes) had not been included in
the data. If line numbers had been included in the data, they would have
been considered to be the first characters of the record.
:JOB JOE.VOLLMER,PUB
PRIORITY = DS; INPRI = 8; TIME = UNLIMITED SECONDS
JOB NUMBER = #J2
TUE, JUN 3, 1980, 1:53 PM
HP3000 / MPE III 8.0l.DC
:EDITOR
HP32201A.4.02 EDIT/3000 WED, JUL 30, 1975, 8:39 AM
/ADD
1 THIS IS THE FIRST LINE OF THE WORK FILE
2 (THE DATA WAS ENTERED FROM CARDS)
/LIST ALL
1 THIS IS THE FIRST LINE OF THE WORK FILE
2 (THE DATA WAS ENTERED FROM CARDS)
/END
END OF SUBSYSTEM
:EOJ
CPU SEC. = 4. ELAPSED MIN. = 1. TUE, JUN 3, 1980, 1:53 PM
Figure 2.2. Running EDIT/3000 in Batch Mode
NOTE EDITOR input files processed in batch mode do not need a
semicolon(;) at the end of each command. Semicolons may still be
used to ignore sequence num- bers, although this practice is not
recommended.
MPE/iX 5.0 Documentation