Previous Topic: MAP OUTNext Topic: ENDPAGE


STARTPAGE

A STARTPAGE statement initiates the paging session. It can be followed by any number of DML commands, including MAP IN and MAP OUT commands. The map-paging session is terminated by an ENDPAGE command (or by another STARTPAGE command, if one is encountered before an ENDPAGE command).

After completion of a STARTPAGE function, the ERROR-STATUS field of the IDMS-DC communications block indicates the outcome of a pageable-map operation:

Message Number

Description

4604

A paging session was already in progress when this STARTPAGE command was received. An implied ENDPAGE was processed before this STARTPAGE was successfully executed.

Syntax

►►─── STARTPAGE session (map-name) ───────────────────────────────────────────►

 ►─┬────────────┬─┬──────────────┬─┬────────────┬─┬─────────────────┬─ ; ─────►◄
   ├─ WAIT ─────┤ ├─ BACKPAGE ◄ ─┤ ├─ UPDATE ◄ ─┤ ├─ AUTODISPLAY ◄ ─┤
   ├─ NOWAIT ◄ ─┤ └─ NOBACKPAGE ─┘ └─ BROWSE ───┘ └─ NOAUTODISPLAY ─┘
   └─ RETURN ───┘
STARTPAGE SESSION map-name

Specifies the beginning of a pageable map session, specifies the name of the pageable map used for the session, and specifies the map paging options in effect for the session. The STARTPAGE command must precede any commands (such as MAP IN) that specify operations performed using the map.

NOWAIT/WAIT/RETURN

Specifies the runtime flow of control when the operator presses a control key:

Runtime mapping does not update program variable storage unless the application program issues a MAP IN command. In cases where the operator can update data, it is recommended that WAIT or RETURN be specified for the paging session so that data can be retrieved as it is updated.

BACKPAGE/NOBACKPAGE

Specifies whether the terminal operator can display a previous map page:

UPDATE/BROWSE

Specifies whether the terminal operator can modify map data fields:

NOBACKPAGE cannot be assigned if UPDATE and NOWAIT are specified for the session.