Je ODBC-Anwendung wird, meist in QGPL, ein Objekt der Art *SQLPKG angelegt.
Per PRTSQLPKG (o.ä.) kannst du den Inhalt analysieren.