Download R T E S USER MANUAL - rt

Transcript
CHAPTER THIRTEEN - BATCH COMMAND FACILITY
OVERVIEW
A disk file may contain a series of operator commands to be executed sequentially on demand.
This is particularly handy when you want to set the values of certain parameters, limits, alert
messages, specific to some particular condition while retaining the rest of the knowledge base.
Such a file, created ahead of time using a word processor or the NOTE command (if it does not
contain more than 15 lines) or created automatically using the FILE and XFILE commands, is
called a batch file.
Each of these files has a unique file name and is executed by the command
GET file_name<cr> or
GET @variable_name
The batch file name could be a path such as B:SETUP1.CMD thus extending the reach of the
system beyond the current default directory.
When you use the GET command to retrieve the data back from disk, the system opens the file
named as the argument to the GET command and executes each line in the file as a command.
Batch command files can be used to update another site running the same application. You could
create a file containing the commands required and send it to the site on a floppy disk. The user
at the other site could then use the GET command to enter the new commands instead of entering
them at the keyboard.
BATCH FILE FORMAT
A batch file contains one command per line. Each line follows the syntax appropriate to the
command used. For instance, a batch file may contain
NAME R17 A
NAME R18 B
NAME R19 C
RULE A=B+C
TEXT A RESULT
(c)1992-2005 FAI Designs Inc.
8-45