That looks promising, but no success yet.
When the connection is opened, and the QZDASOINIT job starts, it shows this in the joblog:
The following special registers have been set: CLIENT_APPLNAME: {.NET assembly name here}
Then the .NET code executes the SYSPROC.WLM_SET_CLIENT_INFO() stored procedure, and this joblog msg appears:
The following special registers have been set: CLIENT_USERID: CLIENT_APPLNAME, CLIENT_WRKSTNNAME: PGM1
Here's the .NET code:
Using _db2ClientName As New iDB2DataAdapter
With _db2ClientName
.SelectCommand = db2Connection.CreateCommand()
.SelectCommand.CommandText = "SYSPROC.WLM_SET_CLIENT_INFO"
.SelectCommand.CommandType = CommandType.StoredProcedure
' parameters
.SelectCommand.Parameters.Add("Register", iDB2DbType.iDB2VarChar, 255)
.SelectCommand.Parameters("Register").Direction = ParameterDirection.Input
.SelectCommand.Parameters("Register").Value = "CLIENT_APPLNAME"
.SelectCommand.Parameters.Add("Value", iDB2DbType.iDB2VarChar, 255)
.SelectCommand.Parameters("Value").Direction = ParameterDirection.Input
.SelectCommand.Parameters("Value").Value = "PGM1"
.SelectCommand.ExecuteNonQuery()
End With
End Using
-----Original Message-----
From: Rob Berendt [mailto:rob@xxxxxxxxx]
Sent: Thursday, October 03, 2019 7:54 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: .NET & CLIENT_APPLNAME
Couldn't you use one of the methods outlined below?
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/db2/rbafzcurclappl.htm
Probably the easiest way being
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzajq/rzajqprocwlmsetclientinfo.htm
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
As an Amazon Associate we earn from qualifying purchases.