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


  • Subject: Re: how to get the IP from an interactive session
  • From: Larry Bolhuis <lbolhuis@xxxxxxxxxx>
  • Date: Wed, 09 Aug 2000 23:35:55 -0400
  • Organization: Arbor Solutions, Inc

This snippet of CL should do the trick. It's from a program we've had
running for 18 months at least.

        DCL    &DEVD      *CHAR  10   /* Device ID                      */      
        DCL    &IPADD     *CHAR  15   /* TCP/IP Address                 */
        DCL    &RECEIVER  *CHAR 892   /* QDCRDEVD Variable              */
        DCL    &LENGTH    *CHAR   4   /* Return Length                  */
        DCL    &ERRLEN    *CHAR   4   /* Error Length                   */

        RTVJOBA    JOB(&DEVD)
        CHGVAR     VAR(%BIN(&LENGTH))    VALUE(892)
        CHGVAR     VAR(%BIN(&ERRLEN)) VALUE(0)
        CALL       PGM(QDCRDEVD) PARM(&RECEIVER &LENGTH DEVD0600 &DEVD &ERRLEN)
        CHGVAR     VAR(&IPADD) VALUE(%SST(&RECEIVER 878 15))

 - Larry

-- 
Larry Bolhuis         |  
Arbor Solutions, Inc  |  IBM AS/400e - Get There First!
(616) 451-2500        |  
(616) 451-2571 -fax   |  It's 10PM.  Has your NT Server had it's
lbolhuis@arbsol.com   |  theraputic re-boot yet today?
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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 ...

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.