- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 10-31-2008 08:41 AM
(1049 views)
Dear forum members,
I've got another problem here I cannot handle.
I am trying to read a CSV file into a dataset with all input data being alphanumeric. It works pefectly like this:
Data &_output.;
infile "&STGPfad/&_infile" delimiter=';' firstobs=2;
informat default=$1024.;
input (fld1-fld&nr) ($);
Run;
When it comes to a CSV row like
3;4;5;6;7;;8;9
the missing value is not taken as "." but the "8" is taken from the next field and so on, which is...well..wrong.
So I tried "MISSOVER" in the INFILE statement, but still it doesn't work.
Any other ideas would help me a lot.
Thanks and regarsd,
Thomas
I've got another problem here I cannot handle.
I am trying to read a CSV file into a dataset with all input data being alphanumeric. It works pefectly like this:
Data &_output.;
infile "&STGPfad/&_infile" delimiter=';' firstobs=2;
informat default=$1024.;
input (fld1-fld&nr) ($);
Run;
When it comes to a CSV row like
3;4;5;6;7;;8;9
the missing value is not taken as "." but the "8" is taken from the next field and so on, which is...well..wrong.
So I tried "MISSOVER" in the INFILE statement, but still it doesn't work.
Any other ideas would help me a lot.
Thanks and regarsd,
Thomas
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Add the DSD parameter to the INFILE statement.
Scott Barry
SBBWorks, Inc.
Scott Barry
SBBWorks, Inc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
That helped, thanks! I was trying with DSD and MISSOVER in parallel, which screwed it up even more 😉
Thomas
Thomas