System information
The last command in a SUB file can initiate another SUB file, allowing chained batch
commands.
Suppose the file ASMBL.SUB exists on disk and contains the prototype commands:
ASM $1
DIR $1.*
ERA *.BAK
PIP $2:=$1.PRN
ERA $1.PRN
then, you issue the following command:
SUBMIT ASMBL X PRN
The SUBMIT program reads the ASMBL.SUB file, substituting X for all occurrences of $1 and
PRN for all occurrences of $2. This results in a $$$.SUB file containing the commands:
ASM X
DIR X.*
ERA *.BAK
PIP PRN:=X.PRN
ERA X.PRN
which are executed in sequence by the CCP.
The SUBMIT function can access a SUB file on an alternate drive by preceding the filename by a
drive name. Submitted files are only acted upon when they appear on drive A. Thus, it is possible
to create a submitted file on drive B that is executed at a later time when inserted in drive A.
1.6 Transient Commands CP/M Operating System Manual
1-40