HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

6-: 22
prints ABC, followed by a carriage return character but not a line feed
character. When the output file is printed on a line printer, xyz is
printed over ABC.
The statement:
200 DISP USING "DD,@,DD@DD@,@DD"; 12,13,14,15
prints 12, a form feed character, 13, a form feed character, 14, two form
feed characters, 15. When the output file is printed on a line printer,
12 is printed on the current page, 13 on the next page, 14 on the next,
and 15 two pages after 14.
The statement:
300 DISP USING "Z,/,ZZ/ZZZ//ZZZZ/,//ZZZZZ"; 1,2,3,4,5
prints:
1
02
003
0004
00005
Data Files
A data file contains data that an HP Business BASIC/XL program can read
or has written. The file can be stored on a disk, magnetic tape, or
cards. HP Business BASIC/XL uses program files as well as data files.
The material in this section applies only to data files, unless otherwise
noted. See chapter 2 for information about program files.
The following summarizes the material in this section:
TITLE CONTENT
Data File Types The three types of data files that HP Business
BASIC/XL uses
File Identification How HP Business BASIC/XL identifies a data file
File Input and Output Read from or write to a data file.
Data File Types
HP Business BASIC/XL uses three types of data files: BASIC DATA, binary,
and ASCII. Table 6-14 shows their similarities and differences.
Table 6-14. Data File Types
---------------------------------------------------------------------------------------------
|||||
||ASCII | BASIC DATA | Binary |
|||||
---------------------------------------------------------------------------------------------
|||||
| How Created | CREATE statement or | CREATE statement or | CREATE statement or |
| | operating system | operating system | operating system |
| | command. | command. | command. |
|||||
---------------------------------------------------------------------------------------------
|||||
| Fixed Length | Yes, if created with | Yes, if created with | Yes, if created with |
| | CREATE statement. If | CREATE statement. If | CREATE statement. If |
| | created with an | created with an | created with an |
| | operating system | operating system | operating system |
| | command, it depends | command, it depends | command, it depends |