REXX procedure to check database status