× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.