From: Sdlentertd on
When import csv file :

proc import datafile='file.csv'
out=newfile dbms=csv replace;
getnames=yes;
run;

this happens: column names appear in Row 1 instead of actual column
names (that are now Var1, etc...)..... how can I either import column
names so they appear as column names, or rename first row (values)
into column names
Thank you
From: Joe Matise on
Getnames=Yes is the option to do what you're asking. I suspect your file
might have multiple header rows or something? Visually inspect your file,
see what it looks like and if there's anything that would cause it to not
read that first line in.

-Joe

On Thu, Jan 21, 2010 at 3:10 PM, Sdlentertd <sdlentertd(a)gmail.com> wrote:

> When import csv file :
>
> proc import datafile='file.csv'
> out=newfile dbms=csv replace;
> getnames=yes;
> run;
>
> this happens: column names appear in Row 1 instead of actual column
> names (that are now Var1, etc...)..... how can I either import column
> names so they appear as column names, or rename first row (values)
> into column names
> Thank you
>