how can u import .csv file in to SAS?tell Syntax?

Answer Posted / chiranjeevi

retreving the data we can use import&infile also.
import:
proc import datafile='external file'
out=<dataset name> dbms=csv replace;
getnames=yes;
proc print data=<dataset name>
run;

infile:
data code;
infile'C:\Documents and Settings\admin\Desktop\chiru.csv';
input<variable list>;
run;

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by data staging area? : Sas-di

817


Difference between informat and format?

844


how do you test for missing values? : Sas programming

778


What do you code to create a macro? : sas-macro

798


What are the differences between sum function and using “+” operator?

788


How do you connect the desktop application to metadata server? : sas-grid-administration

838


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

764


Tell e how how dealt with..

1965


What are the differences between proc means and proc summary?

799


What are symget and symput? : sas-macro

979


what is sas and what are the functions? : Sas-administrator

737


What is the use of stop statement?

824


Explain the difference between using drop = data set option in set and data statement?

913


What is connection profile? : sas-grid-administration

886


Are you sensitive to code walk-throughs peer review or QC review?

2884