I don't see any tabs in that screen shot so it doesn't make sense to use tab as the delimiter in your INFILE statement. Looks like you have pipes as delimiters between the first three fields. But perhaps the strange character is an internal delimiter within the third field. Just ask SAS to show you what character that is. Read in one line and try using the list; statement or use put with the $HEX format to see what character it is.
– Tom
You possibly have multiple delimiters, tau and pipe. Can you confirm this? Do you have a record layout file that accompanies this? And is it possible this file is coming from a different language, or encoding that's causing the issue?
– Reeza
Ok..how can I solve for this? Or, how can I confirm this?
– user2458552
1 Answers
0
votes
Try to use that character directly in the infile statement. For that simply copy the character and don't use the x to indicate hex literal.
That may fail when the encoding of the file is different from the encoding of your SAS session.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
list;
statement or useput
with the$HEX
format to see what character it is. – Tom