I need some help reading a flat file which consists of a "garbabe character" in few observations.
Basically I get a text file which I ftp to a unix server. Once the file gets to the server, i use dos2unix command to change it to a unix file and then read the file with infile statement.
The flat file(testfile) before dos2unix looks like.Notice the "?" characters.
Once i use dos2unix command the file looks as this:
And when i read this file and create a dataset, the dataset looks as follows(same as what is seen after the intial file is converted to a unix file).
x dos2unix /data/eccentric/testfile /data/eccentric/testfilea.txt;
input name $;
proc print data=one;
I was hoping when i convert the file to a unix file those special characters would disappear but it did not happen. Is there any way to delete the observation if it contains these types of garbage characters? Or is there anyway to take care of this issue?
This is not really an ODS question -- it is more of a DATA step/INFILE/Operating System question. Your best bet for a quick response to questions like this is to contact Tech Support. It is possible that this is not really garbage data, but is related to DBCS (double byte character set) characters or NLS encoding issues -- which is something that Tech Support is best equipped to handle.