AS400 Mid Range/Exit key

Advertisement


Question
hi,
I have a specific requirement to have a field of size 26. Any data entered in this field must return the control back to the program without the user having the need to press Enter key or function key. I hope this as given canbe achived using Check (RA, but the catch is that the data entered in this field need not be always 26 characters in siz, could be 18 characters or 10 characters. This is due to the reason that this field needs to hold the barcode value scanned from the product serial code. the barcode size can vary based on barcode type followed by the manufacturer. Please help.  

Answer
The answer depends on whether your barcode scanner has an option to automatically fill the field, even when the barcode is shorter than 26 characters long.  If so, then you can use the CHECK(RA), CHECK(RB), or AUTO(RA) options to automatically return control to your program without the user pressing ENTER or FIELD EXIT.  Otherwise, the entry program has no way of knowing that the scan (which represents a user keying characters) is finished.

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