Date: Fri, 19 Dec 2003 08:23:54 -0800
Reply-To: Carey Smoak <carey.smoak@ROCHE.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Carey Smoak <carey.smoak@ROCHE.COM>
Organization: http://groups.google.com
Subject: Re: CSV file into SAS data set
Content-Type: text/plain; charset=ISO-8859-1
Nick,
Do the PROC IMPORT on your PC SAS 8.2 and look at the log file. It
will have the code that you need. Kevin gave you the correct infile
statement, but the log file (from PC SAS 8.2) will show all of the
code that you need.
Carey Smoak
kviel@EMORY.EDU (Kevin Roland Viel) wrote in message news:<Pine.GSO.4.05.10312181442570.14194-100000@paladin>...
> > I have a text, .CSV, file residing on Unix box where Unix SAS 8.2
> > resides. I wish to convert this CSV data set into a SAS data set. I know
> > how to do it on my PC SAS 8.2 using PROC IMPORT, but I can't do it on the
> > Unix box. Anyone can give the code to convert it?
> >
> > Thanks
> >
> > --nick
>
> Nick,
>
> Consider INFILEing the data in a data step. You have more control
> over what you read and keep.
>
> For example, I have used the following under Windows:
>
> infile "yourdata.csv" dsd dlm="2C"x;
>
> Good luck,
>
> Kevin
|