Barcode print with spaces in rpgle

25 pts.
Tags:
#AS400 #RPGLE #as400
Hi, When we are printing a barcode in rpgle its printed with space for example LOTID has 10 charactor length and has value AS0001 so its printing barcode with 4 space.

DDS
A  52 40     HLOTID        10        78                                

A                                      BARCODE(CODE3OF9 4 *HRZ *HRITOP)

A                                      SPACEA(005)  
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    So what is the issue, the blanks in you data not filling the full 10 of your defined field? Is this causing a problem when scanning in the data? It may be easier to handle the spacing in the scan program to do a right/left adjust or trim of the leading/trailing spaces.  Otherwise you would need separate length barcode definitions for each possible length on the print side of the job as well as the scan program. 
    134,780 pointsBadges:
    report
  • Subhendu Sen
    Please check this link, that might be helpful, https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/rzakd/rzakdmstptbarco.htm
    140,750 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: