|
hi karen
you already got two good answers; so there's no more much left to say.
you can deal with 'invisible' characters almost as if they were visible.
if you have to reference on a 'invisible' character, you can do it in
this manner:
if '61'x then .... what is the same like: if 'a' then ...., 61 is the
hex value for "a" (and so on and so on...)
if you submit the following little program, it shows you, how the
different values represent on your system.
data _NULL_;
dec=0;
do i='0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f';
do
j='0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f';
hex=i!!j;
sign=input(hex,$hex2.);
put sign= dec= hex=;
dec+1;
end;
end;
run;
i consulted an ascii table:
arrow up is hex 18, arrow down hex 19 -> '18'x , '19'x.
there are also formats and informats for such things. look at the manual
(base sas).
one last thing:
you didn't write it, but: if you are transferring the file from one
system to another before you work with it in sas (let's say with proc
upload or download or with ftp), then you have probabely also to concern
about the used translation tables (e.g. from ascii to ebcdic).
now enough, patrick
"Karen L. Olson, Ph.D." schrieb:
>
> I have a data file that contains up-arrows and down-arrows. If I look
> at this file with an ascii editor, these characters do not print.
> In the SAS editor, they appear as little boxes. If I use a word
> processor to look at this file, I see the arrows instead.
> Unfortunately, these arrows are meaningful and I need to read them.
> Is there some way I can make SAS read them without me first having to
> change them to other characters outside of SAS? I have many hundreds
> of files to read that contain these characters.
>
> Karen Olson
> Children's Hospital, Boston
> olson_k@a1.tch.harvard.edu
|