× 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.



If the point is simply to allow use of the bar-code in fields of varying lengths, you may be able to accomplish what you want simply by adding a field exit code at the immediate end (i.e. no spaces prior) of the value to be coded. If the point is that the physical width of the printed code should be affected, that's a different matter.
On Nov 19, 2004, at 1:07 PM, Jimmy Ballard wrote:


Speaking of barcodes - I would like to print a varying length field
out as a barcode. If the field is only 5 chars long - I don't want a barcode
that has the 5 characters and then 45 blanks - I would like the barcode to
only be 5 chars long. In an attempt to define the field as varying in the
printer file I created a reference file that has this field defined as
VARLEN - and specified REFFILE in the printer file. (however, the compile
listing for the printer file showed the length as the max length - 40) Then,
when I compile the RPG program it fails because it doesn't like that the
printer file sees the field as 40 long when the pgm sees it as varying
length (42 long). I have since created a Frankenstein DS in the RPG to
accomplish my feat - but there has to be a cleaner & easier way...Does
anyone know of a way to use a varying length field to print a varying length
barcode?


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.