BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
emoryustc
Calcite | Level 5

HI, anybody can help? i download a test.sas7bdat file online, and saved it to my c: mydata folder, but when i use the code :

data want;
set 'c: \mydata\test.sas7bdat';


i got error message:

the value 'c: \mydata\test'n is not a valid sas member name. where is the problem?

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

SAS EG usually works on a server so you need to upload your data to the server. This would require you to upload the file, you can look at Copy Task to move data to the server, it's a custom task.

View solution in original post

3 REPLIES 3
Tom
Super User Tom
Super User

Do you really have a space between the C: and the \ ?

Is SAS actually running on your PC or is your copy of Enterprise Guide connecting to SAS that is running on some other server?

Reeza
Super User

SAS EG usually works on a server so you need to upload your data to the server. This would require you to upload the file, you can look at Copy Task to move data to the server, it's a custom task.

emoryustc
Calcite | Level 5
Yes, this works, it seems EG works with authorization

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 3 replies
  • 868 views
  • 0 likes
  • 3 in conversation