AS400 Mid Range/Record Advance on SDA

Advertisement


Question
We scan serial numbers from barcodes into the screen and then auto advance to the next screen based on the fields value. We are increasing the serial number field to 20 positions from 15, but the majority of our labels are still 15 position barcodes. The 15 positions no longer fill the 20 byte field and so we lose the Auto-Advance and the scanners have to hit enter after they scan. Do you know of any way to blank fill the last 5 positions when the shorter barcode is entered or a way to auto-advance regardless of whether the field is full? Thanks for your help.

Answer
It's possible that the AUTO(RB) or AUTO(RAB) keyword (which right-adjusts and blank-fills the field) could work for you, although it would leave your barcode right-justified.  Your software would then likely have to left-justify any barcode shorter than 20 characters.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.