HP 3000 Manuals

REPORT Command [ HP ALLBASE/4GL Developer Reference Manual Vol. 2 ] MPE/iX 5.0 Documentation


HP ALLBASE/4GL Developer Reference Manual Vol. 2

REPORT Command 

The REPORT command prints a report.

Formats 

REPORT {report_name}
       {data_ref   }

Parameters 

report_name 

The name of the report to be produced.

data_ref 

Can be any of the following, containing the name of the report to be
produced:

   *   A constant.

   *   A variable or calculated item.

   *   A screen field name.

   *   A scratch-pad field name.

Description 

The REPORT command produces the named report.  Once initiated, the report
runs to completion.  With the exception of the start-of-report function,
HP ALLBASE/4GL does not allow any user interaction while the report is
active.  The start-of-report function can display a screen to accept data
from the user.

Chapter 7 of this manual describes the HP ALLBASE/4GL report generator.

Any HP TurboIMAGE/iX database opened during the execution of a report is
opened in the database access mode set for the database by the DM IMAGE
*MODE command.  If no mode has been specified for the database, it is
opened in the default *READSHAR mode.

If a mode other than *READSHAR is required, you must specify the mode in
a logic block.  The DM IMAGE *MODE command that specifies the access mode
must precede the REPORT command.  Refer to the DM IMAGE *MODE command for
more information about setting an access mode.

Example 1 

     REPORT stock_list

This command prints the report stock_list.

Example 2 

     1  DM IMAGE MODE *READEXCL :D-product
          .
          .
          .
     5  REPORT products
          .

This command sets the HP TurboIMAGE/iX database access mode of the
product database to *READEXCL . When the products report is run, the
product database is opened in *READEXCL mode.



MPE/iX 5.0 Documentation