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