BookmarkSubscribeRSS Feed
thanikondharish
Calcite | Level 5
I have one CSV file in below path
'\\10.11.333\a\b\test.csv' .
When I am writing proc import like see below
Proc import data file='\\10.11.333\a\b\test.csv' DBMS=CSV
Out=want;
Run;
When I am running this code I am getting error.
Then how to import that data
2 REPLIES 2
Kurt_Bremser
Super User

Maxim 1: Read the Documentation.

In this case, the documentation for the PROC IMPORT Statement

Your mistake will be obvious.

The position of the ERROR indicator in the log will also provide a clue which part of the statement is wrong.

Onizuka
Pyrite | Level 9
	Proc import datafile = "path\name_file.csv" 
		out = name_output dbms = dlm replace ;
		delimiter = ";" ;
		getnames = yes ; /* depend of your data */
		guessingrows=500; /* facultative, by default 20*/
	run ;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 392 views
  • 0 likes
  • 3 in conversation