× 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.











"Alistair Rooney" <alistairr@tbsa.co.za> on 04/20/2000 04:28:37 AM

Please respond to RPG400-L@midrange.com

To:   "AS400 Listserv" <RPG400-L@midrange.com>
cc:    (bcc: Arlene M Soderlund/NFCNA.COM)
Subject:  IP address of the current session?



I believe this has been discussed before and that there is an API to return
the IP address of the interactive session to an RPG program. I have looked
and I can't find the jolly thing. Anybody have any ideas?

DCL        VAR(&IPADDR) TYPE(*CHAR) LEN(20)
 DCL        VAR(&BIN) TYPE(*CHAR) LEN(4) VALUE(X'00001024')
 DCL        VAR(&FMT) TYPE(*CHAR) LEN(8) VALUE('DEVD0600')
 DCL        VAR(&JOB) TYPE(*CHAR) LEN(10)
DCL        VAR(&ERR) TYPE(*CHAR) LEN(7)


 CALL       PGM(QDCRDEVD) PARM(&RECV &BIN &FMT &JOB &ERR)
CHGVAR     VAR(&IPADDR) VALUE(%SST(&RECV 878 15))






+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.