Kbase P52068: How to obtain database logical name
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Unverified
GOAL:
how to obtain database logical name
FIX:
Use ldbname, it will return the logical name of the current connected database.
the example below is from Progress documentation.
DEFINE VARIABLE x AS INTEGER FORMAT "99".
DO x = 1 TO NUM-DBS WITH DOWN:
DISPLAY PDBNAME(x) LABEL "Physical Database"
LDBNAME(x) LABEL "Logical Name"
DBTYPE(x) LABEL "Database Type"
DBRESTRICTIONS(x) LABEL "Restrictions"
SDBNAME(LDBNAME(x)) LABEL "Schema Holder DB".
END.