Default synonyms on OS/390

Workstation database server users: After installation, these synonyms appear in the table Q.COMMAND_SYN_TSO.

Display Printed Report
Synonym is DPRE. Displays the user's current report in its printed form.
Batch Query/Procedure
Synonym is BATCH. Allows the user to run a query or procedure in batch mode.
Layout Form
Synonym is LAYOUT. Lets the user tailor reports without running a query. For information on the Layout command syntax and an example of how to use this application, see the QMF Reference manual.
Bridge to ISPF
Synonym is ISPF. Lets the user temporarily leave interactive mode QMF and "bridge" to an ISPF/PDF session. After the session is ended, the user returns to QMF at the point where the ISPF command was issued. For more on the ISPF application, see the Using QMF and Developing QMF Applications manuals.

ISPF considerations
The synonyms DPRE, BATCH, LAYOUT, and ISPF are valid only if QMF is started under ISPF. If QMF is not started under ISPF, you can access ISPF by entering TSO ISPSTART.

Displaying printed reports (DPRE) in ISPF

A printed report does not look exactly as it does on-screen. For example, the displayed report is treated as a single page even with one or more page breaks in the printed report.

The differences between the printed report and its displayed version are largely cosmetic; the facts and figures on the screen and those on the printed page are the same. However, the differences can be important. (For more detailed information about the differences, see the Using QMF manual.) IBM supplies the QMF application DPRE to display the report as it will look when printed. After QMF is installed, the application can be invoked using a command stored in the Q.COMMAND_SYNONYMS table. The application is shared for everyone's use.

DPRE components under TSO are a procedure named Q.DSQAER1P in the database and a CLIST named DSQABR13 in the library QMF720.SDSQCLTE.

Using DPRE

To use DPRE, load the DATA object with the report data and the FORM object with the appropriate form, then issue the command:

DPRE

The application then generates the printer output and displays it through the ISPF browse facility. After you are done browsing, the printer output disappears.

If you are using an NLF: Issue the translated command synonym for DPRE to display printed reports. For example, the translated German command synonym for DPRE is AGB. For the translated command synonym for DPRE in the other language environments, see the Q.COMMAND_SYNONYM_n control table or the translated online help for the command.

Report Parameters

The LENGTH parameter for the report being browsed is taken from PROFILE. The WIDTH parameter specified in PROFILE is used if it is less than 132 (lrecl); otherwise, a width of 132 (lrecl) is used because this is the length specified in the TSO allocate statement. If 132 is too small, the TSO allocate statement for DSQPRINT can be changed to accommodate a larger width.

Performance Considerations

The design of QMF encourages users to develop their printed reports by alternately modifying the FORM panels and displaying REPORT, until the report suits the user's needs. With DPRE, the user can alternate changing the FORM panel and browsing the tentative report with DPRE. Users should be aware, however, that this method of development is more expensive than the first method, and should be used sparingly when resources are at a premium.

For a large report, all the rows of the report are fetched before the report is displayed.

Responding to Errors

DSQPRINT is the ddname for the data set that receives output from QMF PRINT commands in which PRINTER=' ' is either expressed or implied. When a user runs DPRE, DSQPRINT is redefined as the data set that holds the material to be browsed. If an error stops the run, this definition might still be in effect.

Customizing DPRE

Important: When making modifications to any file, first rename it and be sure to keep backup copies of original and modified files.

Under TSO, you can change two areas in DPRE:

[ Previous Page | Next Page | Contents | Index ]