|
IBM has published an APAR on Client API's but it didn't help us. Any TELNET connection is assigned, randomly, a QPADEVnnnn device name. We don't have control of this, AFAIK. We've needed, however, a consistent identifier for each display session. We will use the IP address, which for internal connections is always the same for a particular PC (generally speaking--there are probably other scenarios that dynamically allocate addresses that will defeat even this scheme). There are PTF's that let you identify these QPADEVnnnn names and find out what IP address is tied to them. For V3R2, the PTFs are SF38876, SF38885, SF38886, & SF38688. Equivalent for V3R7 is, I think, SF42477 & SF42086. SF38876 contains info on the API function QDCRDEVD (Retrieve Device Description). Additional fields have been added to format DEVD0600, that can give you the IP address corresponding to the device name. Again, we (AS/400 programmers) have no control over the device names assigned. Also, the same problem occurs with Workstation Gateway, the on-the-fly Web server for 5250 screens. And furthermore, the above API does not help here, either. Rather, you have to be sure your signon screens match the AS/400 default in the upper portion. Then you need to get info out of the WSG log--see the TCP/IP Reference for more info or mail me privately. Cheers Vernon Hamberg Systems Software Programmer Old Republic National Title Insurance Company 400 Second Avenue South Minneapolis, MN 55401 (612) 371-1111 x480 +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@midrange.com". | To unsubscribe from this list send email to MAJORDOMO@midrange.com | and specify 'unsubscribe MIDRANGE-L' in the body of your message. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.