REFRESH command

The Refresh (REFRESH) command is used to obtain the most recent information from the DIB for the most recently issued command.

Format

Read syntax diagramSkip visual syntax diagram EXECDLIREFRESHDBQUERY

Options

DBQUERY is required. Other options are not allowed with the REFRESH command.

Usage

The REFRESH command is used with the QUERY command.

The QUERY command is used after scheduling the PSB but before making the first database call. If the program has already issued a call using the DB PCB, use the REFRESH command to update the information in the DIB.

The REFRESH command updates all DB PCBs. It can be issued only once.

Example

EXEC DLI REFRESH DBQUERY;
Explanation

This example shows how to specify the REFRESH command.

Restrictions

Restrictions for the REFRESH command:

  • To use this command, you must first define an I/O PCB for your program.
  • You cannot reestablish position in the midst of nonunique keys or nonkeyed segments.
  • You can issue this command only one time.