AS400 Mid Range/Auto enter in display file

Advertisement


Question
Is there a way to take the value of two field, just filled in, (enter not hit yet) and populate them into a third field?  I know how to do this after enter but wondered if there is a way to know a value has been entered in the first two fields and to automatically populate another field.

Answer
Yes - by using the AUTO(RA) or CHECK(RA) option on the second field.  When the second field is keyed, the program behaves as if the ENTER key had been pressed.  You can then populate the third field and redisplay the screen, then allow the user to review or change it, then press ENTER.

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