HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 24
BASIC DATA A BASIC DATA file has fixed length 128-word records.
In an ASCII or BASIC DATA file, a line that exceeds 500 characters is
truncated and an asterisk is substituted for the 500th character. An
error occurs when the line is accessed.
Table 2-5 explains the program file management commands and statements
and shows which of them are compilable.
Table 2-5. File Management Commands and Statements
---------------------------------------------------------------------------------------------
|||||
| Statement or Command | Compilable | File Type | Effect |
|||||
---------------------------------------------------------------------------------------------
|||||
| GET | No | BASIC SAVE | Replaces current program |
| | | | with program in specified |
| | | | disk file. |
|||||
| | | | Can execute program, |
| | | | starting at any line in |
| | | | the main program. |
|||||
---------------------------------------------------------------------------------------------
|||||
| GET | No | ASCII | Retrieves program from |
| | | | specified disk file, one |
| | | BASIC DATA | line at a time. Syntaxes |
| | | | each line. Converts |
| | | | syntactically illegal |
| | | | lines to comments. Can |
| | | | replace all or part of |
| | | | current program. |
|||||
| | | | Can execute program, |
| | | | starting at any line in |
| | | | the main program. |
|||||
| | | | Renumbers new lines. |
|||||
---------------------------------------------------------------------------------------------
|||||
| GET SUB | No | BASIC SAVE | Adds specified subunit(s) |
| | | | to current program. |
|||||
---------------------------------------------------------------------------------------------
|||||
| LINK | No | ASCII | Same as GET for ASCII and |
| | | | BASIC DATA files, except: |
| | | BASIC DATA | cannot replace busy |
| | | | lines, execution must |
| | | | resume in program unit |
| | | | that executed LINK |
| | | | statement, does not |
| | | | affect variables. |
|||||
---------------------------------------------------------------------------------------------
|||||
| MERGE | No | ASCII | Same as LINK, except: |
| | | | replaces current line |
| | | BASIC DATA | only if retrieved line |
| | | | has or receives same line |
| | | | number, execution resumes |
| | | | at line following MERGE |
| | | | statement. |
|||||
---------------------------------------------------------------------------------------------
|||||
| RESAVE | No | Any | Stores current program in |