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

Answer Posted / shruthi

data DatasetName(drop = If any);
infile 'Path\CSVFileName.csv' delimiter = ',' ;
informat Var1 $2.;
informat Var2 anydtdte21.;

format Var1 $2.;
format Var2 anydtdte21.;

Input
Var1 $
Var2 $;

run;

Is This Answer Correct ?    14 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

544


what is metadata? : Sas-bi

607


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

1331


What is the role of unrestrictive users? : sas-grid-administration

579


How necessary is it to be creative in your work?

2026






how will you locate the sas platform applications? : Sas-bi

587


what are some differences between proc summary and proc means? : Sas programming

511


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

1850


What is the function of Stop statement in a SAS Program?

650


why is sas considered self-documenting? : Sas programming

684


how do you want missing values handled? : Sas programming

538


What is the difference between %put and symbolgen? : sas-macro

677


Tell e how how dealt with..

1759


what are 5 ways to perform a table lookup in sas? : Sas-administrator

772


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

1773