/******************************************************************************/
/* Copyright (c) Tom Liotta http://zap.to/tl400 Used with permission          */
/******************************************************************************/
/* RTNIPADDR:  Return the IP address for a device.                  */
/*   Enter a device name to return a variable containing the IP     */
/*   address the device is communicating from.                      */
/*                                                                  */
/* Parms:                                                           */
/*   In:     DEVD  :    *NAME Len(10)                               */
/*  Out:     IPADDR:    *CHAR Len(15)                               */
/*                                                                  */
/* Form:                                                            */
/*           RTNIPADDR  DEVD(&devd) IPADDR(&ipaddr)                 */
/*                                                                  */

 RTNIPADDR:  CMD        PROMPT('Return device IP address')

             PARM       KWD(DEVD) TYPE(*NAME) LEN(10) DFT(*) +
                          SPCVAL((*)) MIN(0) EXPR(*YES) +
                          PROMPT('Device')

             PARM       KWD(IPADDR) TYPE(*CHAR) LEN(15) RTNVAL(*YES) +
                          PROMPT('IP address             (15)')

-- MartinRowe - 24 Jun 2005
Topic revision: r1 - 24 Jun 2005 - 20:35:23 - MartinRowe
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DBG/400? Send feedback