AS400 Mid Range/Display File

Advertisement


Question
I have a 15 position field in a display file that is used to enter part numbers.  In the past, user input has always been interpreted to upper case.  Some new part numbers containing a hyphen are not being converted to upper case.  What is the cause and how do I fix - always want alpha characters in upper case.

Answer
To be certain that the alpha characters are converted to uppercase, I use my own conversion subroutine.  This subroutine would use the MOVEA command to place your item number in an array with 15 1-character elements.  Then execute a DO loop.  Any character that falls between 'a' and 'z', seton bit '1', using the BITON command. That will convert lowercase alpha characters to uppercase and leave the other characters as they are.

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