As someone pointed out earlier, a bar code scanner, at least all the ones I
ever wrote programs to interface with, automatically shot an enter key
escape character to the 5250 screen. Did you try this to see if yours does
this or not? It's been a long long time since I did this last but I seem to
remember using CHECK(ER) along with the scanner's own enter escape character
that was automatically fed to my program(s).

As far as hitting enter to refresh the screen...You can have the 5250 screen
auto-update by letting it use a data queue (in addition to the keyboard) to
implement an auto-refresh. Then you can avoid forcing them to hit the Enter
key to refresh it.

Look around on the web for examples. I remember doing this back in 1992 or
1993 based on an article floating around in one of the magazines back then.
I'm sure it's been "rediscovered" once or twice since then and hauled back
out to be published as if it was a new idea. That sort of thing happens
constantly with the iSeries. I've seen it on this list more times than I
can count.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Phil Kestenbaum
Sent: Wednesday, August 13, 2008 1:07 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Auto advancing display screen

I would like to do something along these lines for a field to take some
kind of bar code as if it is an enter key. This would save the shipper
from having to leave the packages area and go back to the screen for
each package, to just have to hit enter to continue to Refresh the

Thank you,

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Craig Jacobsen
Sent: Wednesday, August 13, 2008 1:58 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Auto advancing display screen

Bar code readers(*) do it by simply by appending the control code for
to the data stream.

What is the control code (in hex)? This is what I want to concatenate
the end of the field!

*At least those that are attached via an actual or emulated keyboard
When the data hits the
hardware, it looks just like the data was typed in and enter pressed.

Not sure what you are trying to do, how is the data getting into the

Charles Wilt
Software Engineer
CINTAS Corporation - IT 92B


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
On Behalf Of Craig Jacobsen
Sent: Wednesday, August 13, 2008 11:52 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: Auto advancing display screen

Does anyone know a hex code I can append at the end of a field to act
Barcode readers can usually be configured to auto enter a scan.
How do they do it?



This e-mail transmission contains information that is intended to be
confidential and privileged. If you receive this e-mail and you are not
named addressee you are hereby notified that you are not authorized to
print, retain, copy or disseminate this communication without the
consent of
the sender and that doing so is prohibited and may be unlawful. Please
reply to the message immediately by informing the sender that the
was misdirected. After replying, please delete and otherwise erase it
any attachments from your computer system. Your assistance in
this error is appreciated.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by 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].