beautypg.com

System variables – Gasboy CFN Series CFN II Quick Reference User Manual

Page 20

background image

CFN II Quick Reference

16

C09159 Rev. 2238

Command Mode

Command

Argu.

Mode Function

g

n

e c

go to line number n

change

begin #
end#

c

make changes to designated lines

find

c

search for a pattern, enter insert
mode

search

Begin#
end#

c

print all lines in search range that
match a pattern

clear

c

erase

entire

file

del

Begin#
end#

c

deletes designated lines

append

filename

c

insert file at cursor

load

filename

c

replace buffer with file

name

filename

c

set name of current file

save

c

save

file

resave c

resave

existing

file

q

c

quit editor, exit to operating system

tabs

n

c

set tab stops every n columns

System Variables

The following variables can be used in command
files. Note that these are case-sensitive—they must
be uppercase or lowercase, as shown below:

Name Definition

%0

Number of arguments on command line
(note that this character is a zero).

%1-%9 Command line arguments one through nine.

%A

Number of input lines from command
terminal waiting to be read. (To test if user
pressed ENTER).

%B#

Current drawer balance for drawer #.

%C

Where command is being executed from:

1 = local command port (command
terminal)

2 = remote command port

3 = cron

4 = console #1

5 = console #2

6 = console #3

7 = console #4

8 = Profit Point #1

9 = Profit Point #2

10 = Profit Point #3

11 = Profit Point #4

%D Date

(MM/DD/YY).

%E

Last error code from last command.

A 0 means the command was completed
successfully; greater than 0 usually means
the command failed. Note that FIND and
STATUS O and CLOSE use the error code
in a special way.

%Fd

Where d is the drive letter. Gives space
remaining, in bytes.

%I

Current site ID.

%K

Position of console keyswitch:

0 = off

1 = on

4 = supervisor

8 = manager

%M#

Miscellaneous options where # stands for:

1 = returns the initial drawer balance in
SYS_PAR

2 = transaction number of first transaction in
file

3 = transaction number of last transaction in
file

4 = status of bank modem (0=down,
1=available, 3=connected)

5 = status of CFN modem (0=down,
1=available, 2=dialing, 3=connected but not
logged in, 4=logged in)

6 = if the parameter is enabled for unique
shift numbers for each console, returns a 1;
if disabled, returns a zero
7C# = if the parameter is enabled for unique
shift numbers for each console, returns the
shift number of console #; if disabled,
returns the system’s shift number. (The #
can be replaced by a %a-%z user variable
to allow variable selection of the console
number.

8C# = if the parameter is enabled for unique
shift numbers for each console, returns the
shift sequence number of console #; if
disabled, returns the system’s shift
sequence number. (The # can be replaced
by a %a-%z user variable to allow variable
selection of the console number.

9 = returns one if configured for a CRT;
otherwise, returns zero

%P

Permission level of user currently signed on.