HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4-: 101
INTEGER
SREAL
REAL
SDECIMAL
DECIMAL
where
number
is a positive short integer numeric
constant that specifies the number of characters
skipped. The skip feature is used to bypass unneeded
data in a data set. For the PACK USING and UNPACK USING
statements, that number of characters (bytes) are
skipped in the specified
str_var
. For the DBGET USING,
DBPUT USING and DBUPDATE USING statements that number of
characters is skipped in the implicit
str_var
. In both
cases, use of this option can save time when accessing a
subset of the variables in a data set.
Examples
The following example shows the PACKFMT statement. It declares the
variables, and then specifies three PACKFMT statements.
100 INTEGER Number,Times(4)
110 DIM String$[10],A$[10]
120 PACKFMT Number,String$,A$[6],Times(*)
130 PACKFMT Times(*),SKIP 2,String$,SKIP 5,Number,SKIP 1,A$[1;5]
140 PACKFMT 2, INTEGER(7.2),"wow"
PAGE HEADER
The PAGE HEADER statement prints at the top of every page of a report
unless suppressed. The first page header follows the report header.
This section is activated by any automatic page break or the TRIGGER PAGE
BREAK statement. The PAGE HEADER section is optional.
Syntax
[ [LINES]]
PAGE HEADER [WITH
num_lines
[LINE ]]
[USING
image
[;
output_list
]]
Parameters
num_lines
The maximum number of lines expected to be needed by the
section statement. This number reflects ALL output done
by the section.
image
An image string or a line reference to an IMAGE line.
output_list
A list of output items, identical to the list described
in the PRINT USING statement.
Examples
The following examples show the use of the PAGE HEADER statement.
100 PAGE HEADER
110 PAGE HEADER WITH 4 LINES
120 PAGE HEADER WITH 2 LINES USING Hdr;Co_name$,Pg
130 Hdr: IMAGE 30X,25A,4D,/ !Image statement for line 120.
The WITH clause of the PAGE HEADER section is evaluated only once, when
BEGIN REPORT executes. This number of lines specified is used throughout
the rest of the report, and helps define the "effective" page size. The
page header section does not have to print as many lines as are reserved.
If it does not, other lines may be printed in the rest of the space.