Chapter Contents |
Previous |
Next |
SAS/CONNECT User's Guide |
For example, suppose you have a German keyboard and a CMS host. You want a file to contain umlaut-A characters after an upload. By default, the ASCII representation of umlaut-A, which is X'84', is translated to EBCDIC X'24'. However, the EBCDIC representation of umlaut-A is X'C0', so you need to translate EBCDIC X'24' to EBCDIC X'C0'. The following DATA step, in which NAME is a variable that contains umlaut-A characters, performs this translation:
data new; set old; retain to 'C0'x from '24'x; drop to from; name=translate(name,to,from); run;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.