If the scanner is attached to a PC it could be sent to d data queue, but not as a keyboard wedge. If
you are using a mobile/handheld computer that has a scanner attached, and is using terminal emulation
to get an i session, then with the appropriate programming you should be able to get the data onto a
data queue as well. This will take some PC programming though.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert
Rogerson
Sent: Friday, May 02, 2008 9:01 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Processing a 2D barcode...
Is it possible to have the scanner write the data to a data queue?
Rob R.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Armbruster, Tom
Sent: May 1, 2008 10:58 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Processing a 2D barcode...
Mike is right about this process, so long as there are no commas in the
individual bar codes. That would be bad.
The first question to ask yourself is the format of the barcodes in
question. The comma delimitation is obviously a product of the scanning
software or program. That delimiter may be customizable. If so, change the
delimiter to an ASCII or EBCDIC character that would never be part of the
individual barcode. That will allow you to trap the end of the record
without interference.
If the delimiter can not be customized, the next step would be minimum
length. If you know, for example, that your end delimiter may be repeated
in the actual barcode, set a minimum length for the first occurrence to scan
for the "real" end of the input substring. In other words, if the barcode
will never less than 10 characters, don't scan for the delimiter within the
first 10 characters of the substring.
Tom Armbruster
________________________________
From: rpg400-l-bounces@xxxxxxxxxxxx on behalf of Mike Krebs
Sent: Thu 5/1/2008 7:00 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Processing a 2D barcode...
Off the top of my head, you are going to have to read the data to a long
text field and write a parsing routine to move them to the subfile. I don't
know of any support for parsing the barcodes directly into a subfile. Can
the scanners translate the commas into some other character (like a field
exit)?
Mike Krebs
----- Original Message ----
From: Robert Rogerson <robertrogerson@xxxxxxxxxx>
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Sent: Thursday, May 1, 2008 1:51:33 PM
Subject: Processing a 2D barcode...
Please let me know if this is posted to the wrong list.
I am looking at how to process a scanned 2D bar code in RPG and populate a
subfile.
I have no problem when scanning a single barcode but the 2D barcode may
contain 80 individual barcodes which are comma separated.
I am checking the Web for any information but so far have found none.
Is there anyone with experience who can point me in the right direction. At
this point any help would be appreciated.
Thanks in advance,
Rob R.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
____________________________________________________________________________
________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.