NUM-ALIASES function

Returns an INTEGER value that represents the number of aliases defined. The NUM-ALIASES function uses no arguments.

Syntax

NUM-ALIASES

Example

This procedure displays the number of defined aliases. It also displays the aliases and logical database names of all connected databases.

r-numal.p

DEFINE VARIABLE ix AS INTEGER NO-UNDO.

DISPLAY NUM-ALIASES LABEL "Number of Defined Aliases:".
REPEAT ix = 1 TO NUM-ALIASES:
  DISPLAY ALIAS(ix) LABEL "Aliases" 
    LDBNAME(ALIAS(ix)) LABEL "Logical Database".
END.

See also

ALIAS function, CONNECT statement, CONNECTED function, CREATE ALIAS statement, CREATE CALL statement, DATASERVERS function, DBRESTRICTIONS function, DBTYPE function, DBVERSION function, DELETE ALIAS statement, DISCONNECT statement, FRAME-DB function, LDBNAME function, NUM-DBS function, PDBNAME function, SDBNAME function