Help using Base SAS procedures

Hi I am trying to import csv file in sas but gives me an error message. the error details are below

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 92
Accepted Solution

Hi I am trying to import csv file in sas but gives me an error message. the error details are below

proc import data = "F:\dell blue\Data Backup 05-02-2014\Downloads\SAS Study Material\9.2.csv"

out = CC_data

dbms =csv

replace;

getname = yes;

run;

error message :

proc import data = "F:\dell blue\Data Backup 05-02-2014\Downloads\SAS Study Material\9.2.csv"

                 ----

                 22

                 76

ERROR 22-322: Syntax error, expecting one of the following: ;, DATAFILE, DATATABLE, DBMS, DEBUG,

              FILE, OUT, REPLACE, TABLE, _DEBUG_.

ERROR 76-322: Syntax error, statement will be ignored.


Accepted Solutions
Solution
‎10-22-2014 11:02 AM
Super User
Posts: 10,550

Re: Hi I am trying to import csv file in sas but gives me an error message. the error details are below

datafile="F:\dell blue\Data Backup 05-02-2014\Downloads\SAS Study Material\9.2.csv"

instead of data=

View solution in original post


All Replies
Solution
‎10-22-2014 11:02 AM
Super User
Posts: 10,550

Re: Hi I am trying to import csv file in sas but gives me an error message. the error details are below

datafile="F:\dell blue\Data Backup 05-02-2014\Downloads\SAS Study Material\9.2.csv"

instead of data=

Frequent Contributor
Posts: 92

Re: Hi I am trying to import csv file in sas but gives me an error message. the error details are below

Thanks it worked correctly

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 800 views
  • 0 likes
  • 2 in conversation