Date: Wed, 27 Feb 2008 07:57:54 -0500
Reply-To: "data _null_," <datanull@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "data _null_," <datanull@GMAIL.COM>
Subject: Re: Reading character variables
In-Reply-To: <205532.84092.qm@web63601.mail.re1.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1
PROC IMPORT may be good enough. For your external just make a
filename statement that points to it. I use PARMCARDS as the datafile
so the program would be self contained.
filename ft15f001 temp;
proc import replace datafile=ft15f001 out=work.test dbms=csv;
getnames = NO;
parmcards4;
W123, xc23451, dfh254612879
W212365871, dx231, agf25
xcv23, dfgh58945xcvb, ascdf254612879
;;;;
run;
On Wed, Feb 27, 2008 at 7:45 AM, Val Krem <valkrem@yahoo.com> wrote:
> I have comma separated data file consisted of several variables of different character length in each record. A sample of the data set looks like the following..
>
> W123, xc23451, dfh254612879
> W212365871, dx231, agf25
> xcv23, dfgh58945xcvb, ascdf254612879
>
> Can anybody help me how to read this file?
>
> Thanks in advance
> Val
>
>
>
> ---------------------------------
> Never miss a thing. Make Yahoo your homepage.
>
|