Midrange News for the IBM i Community


Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Chicagoland
Trailing Blanks in BARCODE in DDS
has no ratings.
Published: 29 Jul 2014
Revised: 01 Aug 2014 - 1475 days ago
Last viewed on: 15 Aug 2018 (3106 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Trailing Blanks in BARCODE in DDS Published by: Bob Cozzi on 29 Jul 2014 view comments(5)

I am modifying a legacy app that uses the BARCODE keyword.

Barcode lengths have changed over the years and this app has a fixed-length barcode field in the DDS.

Obviously if the field isn't filled up, trailing blanks are included in the barcode that is printed on the page. I'm wondering if anyone has a trick that can prevent those trailing blanks from showing up in the barcode? The direction I'm going in is obvious--multiple fields, each with a different length--but that's just crazy.

Are there any alterntives?

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS