03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The SUBMIT Command <strong>CP</strong>/M 3 User's Guide<br />

the argument SAM is substituted for every $1 in the START.SUB file,<br />

and TEX for every occurrence of $2 in the START.SUB file. SUBMIT<br />

then creates a file with the parameter substitutions and executes this<br />

file. This file now contains the following commands:<br />

ERA SAM.BAK<br />

DIR SAM<br />

PIP SAM= A:TEX.COM<br />

If you enter fewer arguments in the SUBMIT command than parameters<br />

in the SUB file,, the remaining parameters are not included in the<br />

commands.<br />

If you enter more arguments in the SUBMIT command than parameters<br />

in the SUB file, the remaining arguments are ignored.<br />

To include an actual dollar sign, $ in your SUB file, type two dollar<br />

signs, $$. SUBMIT replaces them with a single dollar sign when it<br />

substitutes an argument for a parameter in the SUB file. For example,<br />

if file AA.SUB contains line:<br />

MAC $1 $$$2<br />

and you enter the following SUBMIT command:<br />

A>SUBMIT AA ZZ SZ<br />

then the translated file contains the following:<br />

MAC ZZ $SZ<br />

Program Input Lines in a SUB File<br />

A SUB file can contain program input lines. Any program input is<br />

preceded by a less than sign,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!