beautypg.com

User variables, The execute command, User variables the execute command – Gasboy CFN III Mgnr's Mnl V3.4 User Manual

Page 205

background image

MDE-4315 CFN Series CFN III Manager’s Manual for Windows NT · August 2004

Page 189

Variables for Use in Command Files

Making Your Own Commands

The command:

NEWSHIFT 2 3

typed at the prompt will load shift 3 and print the totals for the previous shift 2.

User Variables

The variables %a-%z can be used in your command files.

However, you should use them on a temporary basis because, if you write several command
files, you will find it difficult to make sure that another file does not use the same variable for
a different purpose. (User variables are discussed in the Advanced command files chapter.)

The EXECUTE Command

The EXECUTE, or EXE, command causes the rest of the text on a command line to be
executed immediately and in the background. The output will not be displayed on the console
or command window, nor will the process hold up normal console operations. Without
EXECUTE, you cannot ring up sales until all the commands in a command file have been
executed.

The syntax for EXECUTE is:

EXECUTE command
EXECUTE filename

where command is the name of a command and filename is the name of a command file.

EXECUTE is especially useful for shift-break command files where you do not want to hold
up console operations while shift processing is underway.

A minus sign (-) is automatically added to the command, so the output is not printed.

As many commands as there are available entries in the cron table may be queued
simultaneously.

Since cron and the console use the same command processor, commands queued with
EXECUTE will not start until the console is logged off remote command mode.

Since EXECUTE runs commands in the background, make sure all your command files that
are run with EXECUTE do not contain any indefinite loops. Otherwise, you can lock up the
program space. If you should fill the program space, use the REMOVE CRON;AI command

Name

Definition

%a - %z

User string variables set by SET_VAR; up to 118 characters long.

P* TYPE NEWSHIFT.CMD

* takes two arguments, the old and new shift numbers
stop
load shift %2
run
print totals;a %1
print drawer
P*

This manual is related to the following products: