Set the application name in the LOGINREC structure.
RETCODE DBSETLAPP(loginrec, application) LOGINREC *loginrec; char *application;
A pointer to a LOGINREC structure, which will be passed as an argument to dbopen. You can allocate a LOGINREC structure by calling dblogin.
The application name that will be sent to the server. It must be a null-terminated character string. The maximum length of the string, not including the null terminator, is 30 characters.
SUCCEED or FAIL.
This macro sets the application field in the LOGINREC structure. For it to have any effect, it must be called before dbopen.
It is not necessary to call this routine. By default, the application name will be a null value.
The server uses the application name in its sysprocesses table to help identify your process. If you set the application name, you will see it if you query the sysprocesses table in the master database.