OTRONA ATTACHE Series Manual page 27

Valet
Table of Contents

Advertisement

Alarms
In this example, SUBMIT XYZ will be used as the command line for the
alarm.
When the alarm begins command execution, SUBMIT will retrieve the
file XYZ.SUB.
The file DOCFILE will then be copi.ed from the diskette in Drive B to the
diskette in Drive A by PIP. The file directory (DIR) and filesizes (STAT)
will then
be
displayed and the system will then return to A>.
Building
.a
Cnmma
nrl
file liith
xmm
Files with XSUB will automatically insert variables into the program as
it executes, eliminating the need for operator intervention.
The naming
and building process are the same as the file described on the previous
page, but the command XSUB is entered on the first line in the file and a
variable ($#, where n#n is the next number in sequence) is entered for
each prompt that would require intervention.
In the example that follows, the SOFTCOMtm program will be used to
transfer data to another computer.
XSUB is entered as the first line in
a file named ABC.SUB, followed by the name of the program to execute
(SOFTCOM) and a variable ($#) for each question that will appear on the
screen when SOFTODM begins execution.
A:ABC.SUB
XSUB
SOFTCOM
$1
$2
$3
$4
$5
FC=397
FL=3
COL=6
<
<
<
<
<
<
<
The actual answers to the questions represented by $1, $2, $3, $4, and $5
are entered in the alarm's command line.
XSUB substitutes the next value
on the command line for each $# line as operator prompts appear on the
screen during program execution.
In this example, SUBMIT ABC 1 T DOCFILE Y 6 will
be
used as the command
line for the alarm.
When the alarm begins command execution, SUBMIT will
retrieve the file ABC.SUB and XSUB will be called.
XSUB will then call
SOFTCOM and program execution will begin.
When SOFTCOM issues a screen prompt,
XSUB looks to the next line in the
command file ($1) and substitutes the next value in the alarm's command
line (1) for that value.
At the next question, XSUB SUbstitutes the next
value (T) in the command line for $2, and so on as each question appears
on the screen.
3-12

Advertisement

Table of Contents
loading

Related Products for OTRONA ATTACHE Series

Table of Contents