User`s guide
When the SUBMIT utility begins execution, it opens and reads the file specified by
<filespec> and creates a temporary submit file of type $$$ on the system's tempo-
rary file drive. GENCPM initializes the temporary file drive to the CCP's current
default drive. The SETDEF utility can set the temporary file drive to a specific drive.
As it creates the temporary file, SUBMIT performs the parameter substitutions requested
by the <parameters> subfield of the SUBMIT command line. See the CP/M Plus
(CP/M Version 3) Operating System User's Guide for a detailed description of this
process.
After SUBMIT creates the temporary submit file, its operation is similar to that of
the GET utility described in Section 1.6.4. The SUBMIT command file also has an
attached RSX that performs console input redirection from a file. However, the
SUBMIT RSX expands upon the simpler facilities provided by the GET RSX. Com-
mand lines in a submit file can be marked to indicate whether they are program or
CCP input. Furthermore, if a program exhausts all its program input, the next SUB-
MIT command is a CCP command, the SUBMIT RSX temporarily reverts to console
input. Redirected input from the submit file resumes when the program terminates.
Because CP/M 3's submit facility is implemented with RSXS, submit files can be
nested. That is) a submit file can contain additional SUBMIT or GET commands.
Similarly, a GET command can specify a file that contains GET or SUBMIT com-
mands. For example, when a SUBMIT command is encountered in a submit file, a
new SUBMIT RSX is created below the current RSX. The new RSX handles console
input until it reads end-of-file on its temporary submit file. At this point, control
reverts to the previous SUBMIT RSX.
1.7 System Control Block
The System Control Block, SCB, is a 100 byte CP/M 3 data structure that resides
in the BDOS system component. The SCB contains internal BDOS flags and data,
CCP flags and data, and other system information such as console characteristics and
the current date and time. The BDOS, BIOS, CCP system components as well as
CP/M 3 utilities and RSXs reference SCB fields. BDOS Function 49, Get/Set System
Control Block, provides access to the SCB fields for transient programs, RSXS, and
the CCP.
1-27
1.6 System Operation CP/M 3 Programmer's Guide