So these are 5250-emulation scanners (perhaps Telnet or whatever) not a barcode
scanner that attaches via USB to the PC and is effectively just a supplement to
the keyboard.
In that case the user ID of the scanner session would be the user ID you wanted.
Right? And thus, the IP address of the device would be that of the scanner.
So within the application of the job that is connected to the scanner, you'd
code something like this:
       /copy isockets/qcpysrc,isockets
      D dottedIP        S             15A   
      C                   callp     GetDevIP(*OMIT : dottedIP)

In this example, the *OMIT tells the procedure to return the dotted IP address
of the device associated with the job. You could also put a hard device name in
there if you wanted to. If you're like me and can't stand the "*OMIT" thing, do
this instead:

       /copy isockets/qcpysrc,isockets
      D dottedIP        S             15A   
      C                   callp     GetDevIP('*' : dottedIP)

Same results as first example.

-Bob Cozzi
www.RPGxTools.com
RPG xTools - Enjoy programming again.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of FrankKany@xxxxxxxxxxx
Sent: Tuesday, February 28, 2006 1:16 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Capture IP address of handheld scanner

Hi Bob,

The scanners are signed out daily.  They each have a static IP.  We can 
then find out who scanned a label by referencing the scanner sign out 
sheet for that particular day.  Then we can make sure that who ever 
scanned the a label is the same person who signed out the scanner.  If 
they don't match, then the person signing out the scanner is using a 
signon that's not theirs.

Frank W. Kany IV
Senior Programmer/Analyst 
Unipres USA, Inc.
(615) 325-8428 - Office
(615) 517-1742 - Cell
http://www.unipres.com



"Bob Cozzi" <cozzi@xxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
02/28/2006 11:43 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
"'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: Capture IP address of handheld scanner






Frank,
The GetDevIP() subprocedure will return the device IP for a named device.
Its in iSockets (www.isockets.net)
I don't understand the context of your second statement; how does knowing 
whos'
sharing user IDs related to knowing the IP of a scanner?

-Bob Cozzi
www.RPGxTools.com
RPG xTools - Enjoy programming again.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] 
On
Behalf Of FrankKany@xxxxxxxxxxx
Sent: Tuesday, February 28, 2006 11:19 AM
To: RPG programming on the AS400 / iSeries
Subject: Capture IP address of handheld scanner

Has anyone here developed an RPG program/routine to capture the IP address 

of a handheld scanner?

We have a users that are sharing user id's.  We'd like to know who's 
sharing user id's and with whom.

Thanks,

Frank W. Kany IV
Senior Programmer/Analyst 
Unipres USA, Inc.
http://www.unipres.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.