Kbase P61062: pdbname returns the directory as well as a database name
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  22/02/2010 |
|
Status: Verified
SYMPTOM(s):
pdbname returns the directory as well as a database name
how to take the results of pdbname and return just the database name
FACT(s) (Environment):
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
Progress 8.x
CAUSE:
The pdbname returns whatever name is used in the connection string
FIX:
If you just want the dbname (no directory), you can parse the dbanme out. For example here is how you would do it on windows:
DEFINE VARIABLE db AS CHARACTER NO-UNDO.
db = PDBNAME(1).
MESSAGE ENTRY(NUM-ENTRIES(db,"\"),db,"\") VIEW-AS ALERT-BOX INFO BUTTONS OK.