The "1A" in "...J1A..." is a valid pattern. So this string will match anything that contains a J followed by an alpha character. If you want to match J1A literally, you need to quote it, i.e. "...J'1A'..." or "0X'J1A'0X"

On Apr 14, 2009, at 12:06 PM, Israel, John R. wrote:

I have just encountered an inconsistency between the native UniData select and the PICK flavored select.

From a PICK flavored account, it I use the lower case "sselect" to force native UniData syntax, I get:
 sselect ITMMST WITH F2 LIKE "...J1A..." (6,213 keys - wrong)
If I immediately follow this with the PICK select:
 SELECT ITMMST WITH F2 = "[J1A]" (No keys - correct)

These two statements SHOULD return the same results. Interestingly, if I use a less restrictive select (search for J1 instead of J1A), I get the following:
 sselect ITMMST WITH F2 LIKE "...J1..." (188 keys which is correct)

I am guessing that the UniData flavor is treating the J1A as something else, but until I can figure out what it is doing, I can not come up with a work-around.



John Israel
Sr. Programmer/Analyst
Dayton Superior Corporation
721 Richard St.
Dayton, OH  45342
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to