|
Thanks Peter I finally did find the links in the archives. I was able to cut and paste CL source, compile it and run it without change. Kool Gord ---------- Original Text ---------- From: Peter Connell <peterc@baycorp.co.nz>, on 2/25/01 2:38 PM: Gord, Try this: DCL VAR(&DEVD) TYPE(*CHAR) LEN(10) DCL VAR(&APIRCVR) TYPE(*CHAR) LEN(1000) DCL VAR(&IPADDR) TYPE(*CHAR) LEN(15) MONMSG MSGID(CPF0000) EXEC(GOTO CMDLBL(ERROR)) CALL PGM(*LIBL/QDCRDEVD) PARM(&APIRCVR + X'000003E8' DEVD0600 &DEVD X'00000000') CHGVAR VAR(&IPADDR) VALUE(%SST(&APIRCVR 878 15)) Cheers, Peter -----Original Message----- From: groyle@cott.com [mailto:groyle@cott.com] Sent: Friday, February 16, 2001 8:01 AM To: RPG400-L@midrange.com Subject: Getting an IP Address This one's probably been flogged before, but I couldn't find any info. Is there a CL command that will find the IP address of a PC logged on to the AS400 using 5250 Emulation. We have already created the batch FTP process from information in the "everything that you wanted" RPG IV redbook and the process works fine with a static IP. The problem is our use of Dynamic addressing. I would like to be able to go get the current IP address and plug it in to the FTP batch command. Is this possible or is it a pipe dream? Gord Royle Cott Corporation Canada _______________________________________________________________ Cott - The Leader in Premium Retailer Brand Beverage Innovation. _______________________________________________________________ +--- | 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 +--- This communication is confidential and may be legally privileged. If it is not addressed to you, you are on notice of its status. Please immediately contact us at our cost and destroy it. Please do not use, disclose, copy, distribute or retain any of it without our authority - to do so could be a breach of confidence. Thank you for your co-operation. Please contact us on (09) 356 5800 if you need assistance. +--- | 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 +--- _______________________________________________________________ Cott - The Leader in Premium Retailer Brand Beverage Innovation. _______________________________________________________________ +--- | 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 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.