Import problems

Reply
New Contributor
Posts: 4

Import problems

I am new to SAS. I have been trying to import a CSV file but I have been unable to do so. This is what it had in the log on my last attempt:

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

42 ;

43 proc import datafile= '/‌folders/‌myshortcuts/‌MyFolders/‌Scores.csv' out= class dbms= csv replace;

43 ! getnames= yes

43 ! ;

44 run;

NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to

WORK.PARMS.PARMS.SLIST.

ERROR: The path /‌folders/‌myshortcuts/‌MyFolders/‌Scores.csv is invalid because it is not in the list of accessible paths

when SAS is in the lockdown state.

ERROR: Import unsuccessful. See SAS Log for details.

NOTE: The SAS System stopped processing this step because of errors.

NOTE: PROCEDURE IMPORT used (Total process time):

  real time 1.39 seconds

  cpu time 0.22 seconds

  

45 

46 ;

47 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

57 ;

Any help appreciated :smileyconfused:

Super User
Posts: 19,770

Re: Import problems

Are you using SAS University Edition?

If so, did you add the path to the Shared VM as specified in the instructions?

New Contributor
Posts: 4

Re: Import problems

Yes I am using the University Edition. I do not believe I did that. Could you direct me to which instructions you are referring to? Thank you.

Super User
Posts: 19,770

Re: Import problems

Look at the correct answer here:

New Contributor
Posts: 4

Re: Import problems

So I have the csv file in the work folder now but it says that it cannot be opened because the table does not contain any columns. I have tried every code people have tried in the posts and nothing seems to work. :/

Super User
Posts: 19,770

Re: Import problems

Post your code and error Smiley Happy

Super User
Posts: 11,343

Re: Import problems

This sounds like you are using a server version of SAS and the SERVER can't see the path as given, or the address is relative and the base execution location of SAS doesn't find a /folders within that scope. Datafiles option really should use a fully qualified path in most cases.

New Contributor
Posts: 4

Re: Import problems

Yes I am using the server version. I am very confused as to where my csv file should be.

Ask a Question
Discussion stats
  • 7 replies
  • 1657 views
  • 0 likes
  • 3 in conversation