HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4-: 5
SHAREREAD Other programs can read the file, but
cannot write to it.
str_expr
A string expression that evaluates to a string with a
length of six characters. The string serves as a mask
used to scramble and unscramble file data, excluding
format words, EOR marks, and EOF marks. If a mask is
specified the first time a file is assigned, the same
mask must be specified each time the file is assigned;
otherwise, the data cannot be properly unscrambled.
Examples
The following examples show the use of the ASSIGN statement to open and
close files. Line 30 assigns a file with read access, allowing other
programs to use it. File1 also has a mask. Line 40 assigns a file with
append access. Line 50 assigns a file with readwrite access (default).
Line 60 assigns a file with write access, allowing other programs to read
it, and has a mask. Line 70 assigns the file with readwrite access and
line 80 assigns the file for read access, allowing no one else to access
the program. Line 90 assigns the file using a back referenced file
equation.
10 ASSIGN * TO #1 !Closes file designated as #1
20 ASSIGN #2 TO * !Closes file designated as #2
30 ASSIGN "File1" TO #3,STATUS=S,RESTRICT=READ,SHARED,MASK="ScRmBL"
40 ASSIGN #4 TO "File2",STATUS X,RESTRICT APPEND,SINGLEUSER
50 ASSIGN "File3.lab" TO #5,STATUS Open
60 ASSIGN "F4.mktg.hp" TO #6,RESTRICT=WRITE,SHAREREAD,MASK="zzypdq"
70 ASSIGN #7 TO "File5",RESTRICT READWRITE
80 ASSIGN #8 TO "File6",RESTRICT=READ,EXCLUSIVE
90 ASSIGN "*file3" to #9
BEEP
When HP Business BASIC/XL is running interactively, the BEEP statement
sends a CONTROL G (ASCII character 7) to the terminal, causing it to
beep. When HP Business BASIC/XL is running in a job stream, the BEEP
statement does nothing.
Syntax
BEEP
Example
When the following program is run, the terminal will beep once.
10 BEEP
BEGIN REPORT
The BEGIN REPORT statement activates a report, but does not start report
output. The report description is verified and some Report Writer
expressions are evaluated. The report is not activated unless BEGIN
REPORT executes correctly. This statement can not appear within a report
description.
Syntax
BEGIN REPORT
line_id
Parameters
line_id
The line number or line label of the REPORT HEADER for
the report to use. The line indicated can be a comment,
provided that only comments occur between the given line
and the REPORT HEADER statement.
Examples
100 BEGIN REPORT 500
100 BEGIN REPORT Report_1