This is a multi-part message in MIME format.
Hi all,

Can anyone help me.

I am printing a voucher to a receipt printer.  Amongst other information a
barcode is to be printed which contains a receipt number

eg.  receipt number 000123456 for this printer converts to in hex
303030313233343536 - but within the manual for the printer it is necessary
for me to define this string within the Barcode function being.

1B  62  n1  n2  n3  n4  di   ......  dk  1E

where 1B = ESC
62 = barcode function
n1 = 06 which is CODE 128
n2 = 02 which is character below bar code is printed.
n3 = 4:12 dots
di .. dk = 303030313233343536 (being the receipt number)
1E = end of barcode.

In my RPG program I defined a CONST as follows
where  03 turns on transparency and 16 is the number of characters (HEX) in
the constant.

 #BCODE         C

Now obviously this would be OK if the receipt number was always the same -
my problem is when I replace any of the constants say by doing a substring
over the receipt number it views the data as a variable rather than a

Can anyone help.  What I need is a CONSTANT Variable (if only there was
such a thing?)

Kylea White
Analyst Programmer

Burswood International Resort Casino
Great Eastern Highway
BURSWOOD   WA   6100
Phn:  61 8 9362 7016
Fax:  61 8 9470 1789

                                       Privacy and Confidentiality Notice

The information contained herein and any attachment is intended solely for the 
named recipients.
It may contain privileged confidential information. If you are not an intended 
please delete the message and any attachments and notify the sender of 
Any use or disclosure of the contents of either is unauthorised and may be 
All liability for viruses is excluded to the fullest extent permitted by law.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

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

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.