HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
6-: 24
* Its first nonalphabetic character cannot be "$".
* It cannot contain the following characters:
* comma
(,)
* semicolon
(;)
* space
( )
* exclamation point
(!)
* right parenthesis
())
The format of the file name depends on the operating system. For
example, if HP Business BASIC/XL is running on the HP 3000 under MPE XL,
the format of
fname
is
filename
[/
lockword
][.
groupname
[.
accountname
]]
where
filename, lockword, groupname,
and
accountname
are strings of one
to eight alphanumeric characters. The first character must be alphabetic
in each.
File Number Syntax (fnum).
fnum
is the file number that HP Business
BASIC/XL uses to identify the file. In the syntax specifications in
chapter 4,
fnum
is any numeric expression that evaluates to a positive
short integer greater than zero. The operating system may identify the
same file with another number (see the file function FNUM). The character
# must precede
fnum
, except when
fnum
is a parameter in a call to one of
HP Business BASIC/XL's predefined file functions (then the # is
optional).
Examples
Legal fname Representation
"*myfile" Quoted string literal - file back
reference
Abc$ String expression
"mylife. mygroup" Quoted string literal
File$+Group$+ Account$ String expression
myfile Legal unquoted string literal
myfile/password. mygroup Legal unquoted string literal
Illegal fname Reason it is illegal
*myfile Does not start with a letter
Abc$.mygroup First nonalphabetic character is "$"
Abc);def Contains ")"
An HP Business BASIC/XL program must assign a file number to a file
before it can access it; it must open the file. A program can assign
more than one file number to a file; open it more than once. See the
ASSIGN Statement for more information.
Filecodes. If you list your data or program files, you will see the
following file code mnemonic associated with each type of file:
Filecodes
---------------------------------------------------------------------------------------------
||||
| Mnemonic | Filecode | Description |
||||
---------------------------------------------------------------------------------------------
||||
| BSAVE | 1244 | HP Business BASIC/V Save |
| | | file. |
||||
---------------------------------------------------------------------------------------------
||||
| BSVXL | 1247 | HP Business BASIC/XL Save |
| | | file. |