Previous Topic: ACCEPT IDMS STATISTICSNext Topic: ACCEPT PROCEDURE CONTROL LOCATION


ACCEPT PAGE_INFO

The ACCEPT PAGE_INFO statement moves the page information for a given record to a specified location in program variable storage. Page information that is saved in this manner is available for subsequent direct access by using a FIND/OBTAIN DBKEY statement.

Syntax
►►─ ACCEPT PAGE_INFO RECORD (record-name) INTO (page-info-location) ─────────►◄
Parameters
RECORD (record-name)

Specifies the record whose page information will be placed in the specified location.

INTO (page-info-location)

Specifies the name of the four-byte field that may be defined either as a group field or as a fullword field (PIC S9(8) COMP). Identifies the location in variable storage that contains page information for the specified record type. Upon successful completion of this statement, the first two bytes of the field contain the page group number and the last two bytes contain a db-key radix that may be used for interpreting dbkeys.

Example

The following example retrieves the page information for the DEPARTMENT record.

01 W_PG_INFO.
  03 W_GRP_NUM    FIXED BINARY 15,
  03 W_DBK_FORMAT  FIXED BINARY 15,

  ACCEPT PAGE_INFO RECORD (DEPARTMENT) INTO (W_PG_INFO)
Status Codes

After completion of the ACCEPT PAGE_INFO statement, the ERROR-STATUS field in the IDMS communications block indicates the outcome of the operation:

0000

The request has been serviced successfully.

1508

The named record is not in the subschema. The program has probably invoked the wrong subschema.