Returns an ASCII collating sequence character string.
Category: | Character |
Windows specifics: | Uses the ASCII code sequence |
See: | COLLATE Function in SAS Functions and CALL Routines: Reference |
specifies the numeric position in the collating sequence of the first character to be returned.
specifies the numeric position in the collating sequence of the last character to be returned.
specifies the number of characters in the returned collating sequence.
length y $260
.
'7F'x
) can return a
different value when used on a PC from another country. Characters
above ASCII 127 are national characters and they vary from country
to country.
y
uses the default return string length of 200. Therefore, the COLLATE function returns
200 characters of the collating
sequence. data _null_; y = collate(1,256); put y; run;
data _null_; format y $260.; y = collate(1,256); put y; run;
y
uses a return string length of 56, and the COLLATE function returns the first 56
characters of the collating
sequence. data _null_; y = collate(,,56); put y; run;