Previous Topic: Keywords as IdentifiersNext Topic: Generic DISPLAY/PUNCH Statement


Entity Currency

Entities That Establish Currency

The DMCL, SEGMENT, and DBTABLE entities establish currency for associated entities, as shown in the following table:

Current Entity

Associated Entities

DMCL

ARCHIVE JOURNAL

BUFFER

DISK JOURNAL

JOURNAL BUFFER

TAPE JOURNAL

SEGMENT

AREA

FILE

DBTABLE

DBNAME

How Is Currency Established?

Currency is established when you:

Subsequent operations on associated entities are applied to that particular DMCL, segment, or database name table. The following example establishes IDMSDMCL as the current DMCL occurrence. The database buffer statement that follows implicitly associates the named buffer with IDMSDMCL:

alter dmcl idmsdmcl;

create buffer index_buffer
  page size 1076
  local mode buffer pages 10
  central version buffer
    initial pages 100
    maximum pages 500;

Use Fully-qualified Names if Currency Not Established

If you don't establish currency on a DMCL, segment, or database name table before operating on an associated entity, you must qualify the name of the associated entity with the name of the DMCL, segment, or database name table. In the following example, the BUFFER statement must qualify the named buffer with the name of the DMCL because DMCL currency was not first established:

create buffer idmsdmcl.index_buffer
  page size 1076
  local mode buffer pages 10
 .
 .
 .

Once this statement is executed, IDMSDMCL is established as the current DMCL.