MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Reference Library > Distribution > Expert Configurator > Key Concepts and Procedures > Multiple Platform Issues > Greater Than/Less Than Searches

Greater Than/Less Than Searches

 

The EBCDIC/ASCII sorting inconsistency causes another problem in Configuration Maintenance.  If you wish to search on an option using the greater than (>) or less than (<) operator and the search criteria mixes numeric and alphanumeric characters, the search will return different results on the AS/400 than it will on the PC workstation.  Remember that on the AS/400 letters are sorted before numbers and on the PC workstation letters are sorted after numbers.  For example, suppose you have an option COLOR defined as follows.

 

AS/400 Sorting

PC Sorting

 

Code

Color

Code

Color

1

Blue

C

Cyan

2

Green

G

Gray

3

Red

M

Magenta

C

Cyan

Y

Yellow

G

Gray

1

Blue

M

Magenta

2

Green

Y

Yellow

3

Red

           

 

Notice that the sorting sequence is different in each situation.  If you wanted to see all the colors that are greater than red, the AS/400 search would return Blue and Green (in order).  The same search on the PC would return Cyan, Gray, Magenta, Yellow, Blue, and Green (in order).

When you are structuring your options and expect to perform greater than and less than searches in both platforms, be sure to consistently name your options and not to mix numeric and alphanumeric characters.  If options are represented with all numeric characters or alphanumeric characters but not both, the search will return the same results regardless of platform.