DBFILE


PLBCMP GUI or PLBLinux Only

 

The DBFILE instruction associates a database connection with the PL/B program. It uses one of the following formats:

 

(1)

label

DBFILE

[*|%]

(2)

label

DBFILE

^

 

Where:

label

Optional. A Program Execution Label.

*

Optional. Denotes the item or file as being COMMON.

%

Optional. Denotes the item as being GLOBAL.

^

Optional. Denotes the item as being a POINTER.

Flags Affected: none

Note the following:

  1. The DBFILE instruction reserves memory in the User Data Area.

  2. The DBFILE instruction may be placed in common or the Global Data Area.

  3. The DBFILE instruction may be defined as a pointer to another DBFILE instruction.

  4. All DBSTATEMENT variables that have been opened using this DBFILE are closed.

 

 

See Also: Example Code, SQL Instructions

 



PL/B Language Reference DBFETCHP DBOPEN