× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

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.