Functions for NLS |
Category: | DBCS |
Restriction: | I18N Level 2 |
Tip: | Non-DBCS equivalent function is COMPARE in SAS Language Reference: Dictionary |
Syntax | |
Arguments | |
Details |
Syntax |
KCOMPARE(source,<pos, <count,>>findstr) |
specifies the character expression to be compared.
specifies the starting position in source to begin the comparison. If pos is omitted, the entire source is compared. If pos is less than 0, source is assumed as extended DBCS data that does not contain any SO/SI characters.
specifies the number of bytes to compare. If count is omitted, all of source that follows pos is compared, except for any trailing blanks.
specifies the character expression to compare to source.
Details |
KCOMPARE returns values as follows:
a negative value if source is less than findstr
0 if source is equal to findstr
a positive value if source is greater than findstr
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.