The USERMOD sample for the TDP User Logon Exit (TDPLGUX) is TDU0005 in dbcpfx.SAMPLIB.
TDPLGUX is an exit routine that examines logon requests before they are transmitted to the Teradata server. A parameter list that includes the logon string, request id, and application identification is supplied to TDPLGUX.
TDPLGUX runs under a TDP subtask, in system key and supervisor state. To use TDPLGUX, enable and modify it according to your local requirements.
For more information on using and customizing TDPLGUX, see Teradata Director Program Reference, B035-2416.