Set the host name in the LOGINREC structure.
RETCODE DBSETLHOST(loginrec, hostname) LOGINREC *loginrec; char *hostname;
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 host 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 host name in the LOGINREC structure. For it to have any effect, it must be called before dbopen.
The host name will show up in the sysprocesses table in the master database.
It is not necessary to call this routine. If it is not called, DB-Library will set the default value for the host name. This default value will generally be a version of the host machine’s name provided by the operating system.