Regarding Working DB name...

Use pdbname or ldbname.

You need to do a loop around all connected Databases to make sure you catch the right DB.

Code:
def var idb as int no-undo.
do idb = 1 to num-dbs:
  display 
    pdbname (idb) FORM "x(20)"
    ldbname (idb) FORM "x(20)".
end.
 
Back
Top