bdfp1m2tProgramming Concepts and Reference

DBTAB-Access Database Definition (DBDEF) Tables

Use this macro to access the database definition (DBDEF) tables.

Format




Notes:

  1. If you specify SLOT=YES, you cannot specify the FVN parameter.

label
is a symbolic name assigned to the macro statement.

DBDEF=reg
returns the address of the base of the DBDEF index table to a specified register, reg.

FASTLINK=reg
returns the address of the base of the fast-link table to a specified register, reg.

ID=fileid
specifies the file identifier (ID) for a specific file, where fileid is the label of a 2-byte field containing the file ID.

ERROR=errlbl
specifies that label to which you want to branch if:

FVN=filever
specifies the file version number of the file ID specified by the ID parameter, where filever is the label of a 1-byte field containing the file version number.

SLOT
specifies one of the following:

YES
returns the address of the slot that contains the address of the DBDEF table for a specific file ID.

NO
returns the address of the DBDEF table for a specific file ID.

REG=reg
specifies a register, reg, in which the requested address is returned.

FILETYP=filetype
returns the address of a DBDEF table for a specific record type, where filetype is the label of a 2-byte field containing the record type. The record type is represented with a numeric value defined in the TPF SYSEQC macro or ALCS DXCURID macro.

Entry Requirements

None.

Normal Return

The requested address is returned in the specified register.

Error Return

None.

Programming Considerations

Examples