|
You are correct in your assumption, if the when's conditions are not met, the other clause will perform it's functions. -----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of Feador, Jerry Sent: Tuesday, May 28, 2002 5:15 PM To: 'rpg400-l@midrange.com' Subject: Other What? Must be Monday (okay, Tuesday) no one's awake, or maybe just too busy getting the week started...?... Question... On a mixed SELECT-WHEN group, what does the OTHER clause consider? i.e. SELECT WHEN Code = 'A' WHEN Code = 'B' WHEN Type = '1' WHEN Type = '2' OTHER (does the other here select any condition that is not Code = 'A' or 'B' and not Type '1' or '2' or...?) ENDSL next i.e. SELECT WHEN Code = 'A' And Type = '1' WHEN Code = 'B' Or Type = '2' OTHER (don't have a clue as to what the other here will select...?) ENDSL Can't seem to find any clear definition of the OTHER rules in the manuals. Capt.j _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.