LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (May 2000, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 10 May 2000 22:20:07 +0200
Reply-To:   patrick.matter@gmx.ch
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   patrick matter <patrick.matter@SWISSONLINE.CH>
Subject:   Re: reading special characters
Content-Type:   text/plain; charset=us-ascii

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


Back to: Top of message | Previous page | Main SAS-L page