C.l0. $00- Programmed Command Execution; Start - Sharp mz-3500 Manual For Use

Business computer eos 3.0
Hide thumbs Also See for mz-3500:
Table of Contents

Advertisement

Section C:
Utility Programs
****************
*
$00
*
****************
C.l0. $DO - Programmed Command Execution
This
program
has been created to assist with job preparation and
con-
trol,
not as much so for
the unprepared newcomer.
Nevertheless'-; it is
very
useful for everyone feeling angry at the necessity to type in
the
same command sequences over and over again.
$DO provides you with a facility to deposit command sequences in a file,
Mhich
otherwise
would have to be typed in
:repeatedly,
and
have
EOS
execute them directly from the file. This in achieved by :redirecting the
keyboard
input to a temporary file,
from which the input is then
read
instead of the keyboard.
After the file is te:rmiated, it is erased, and
the keyboard is revived again.
$DO has been written to put some comfort to this matter.
It accepts any
desired file, provided that it is of the ".SUB" type. $DO then processes
the file, replacing some parts of the text, inserting control characters
and doing some other things. Finally the file thus prepared is copied to
a temporary file, and the keyboard is "switched over".
Calls
of $DO may be nested.
You can start $DO from within a $DO
file.
The nesting level is limited only by the memory available.
It
shall be mentioned that the initial job of $DO cannot be aborted
by
pressing a BREAK character, whereas the execution of the commands stored
may be stopped as usual.
C.l~.l.
Start
To have $DO process a file, you type
filename parameter! paramete:r2 •••
$DO
is
then started automatically,
if the file "filename" is
of
the
".SUB" type. $DO searches for a file "filename.SUB" and prepares it.
As
you
see,
you may specify parameters after the
filename.
Usually,
those are any texts,
separated by spaces or commas. If you want to pass
a text containing spaces or commas, simply enclose it in apostrophes:
$DO name wordl word2 'This is word 3' word4
EOS User's manual
Daeumling & Zimmermann
Page 72

Advertisement

Chapters

Table of Contents
loading

Table of Contents