10-07-2011 01:50 AM
I have a csv file and its generated by others people. the delimiter used is comma. it had a header inside the file and so call a "end of file" statment indicate the EOF.
Is there any way to check sas will read until EOF only? and how its does if the file not reached read until EOF ?
10-07-2011 02:30 AM
It would be helpful if you can post the content of this csv file.
Here is an example:
data want(keep=last_obs); infile 'c:\test.csv' length=len end=last; length _obs $ 200; retain _obs; last_obs=_obs; input _obs $varying200. len; if last then do;output;stop;end; run;