BookmarkSubscribeRSS Feed
sara3054
Calcite | Level 5

Hi!

I have created a library successfully then tried to save the program from the code tab in my folder but I am getting the following message each time. 

Code:

Libname PG1 base "/folders/myshortcuts/MyFolder/EPG194/data";
run;

Received message:

Exception: Invalid open mode.

 

I was unable to solve the problem. I am using SAS studio student edition. Please let me know how to fix this. 

Thanks in advance!

4 REPLIES 4
Patrick
Opal | Level 21

May be that's the same issue like discussed here.

 

Also:

You don't need a RUN; after global statements like LIBNAME

Shmuel
Garnet | Level 18

Right click on EPG194 folder in sas studio left window and choose PROPERTIES.

You'll get the correct path to the folder.

The path "/folders/myshortcuts/MyFolder/..." was changed in last sas studio version

        into "/folders/myfolders/..." as much as I remeber.

sara3054
Calcite | Level 5

Thank you for getting back Shmuel!

The file path I used "/folders/myshortcuts/MyFolder/..." in the code; I got it by selecting PROPERTIES of the EPG194 folder. Not sure why the file path included the 'myshortcuts' part. I did not create any shortcut. I followed the exact steps recommended in the tutorial. I closed virtual box and tried again. Same problem. Do you think I should delete everything and re-install? 

Tom
Super User Tom
Super User

Please clarify what exactly you are doing that is generating the error.

It sounds like you typed those two lines into the program editor and are attempting to save it as a NEW file.

What buttons did you click on?  What folder did you select to write the file into? What name did you give for the file?

Screen shots might help, preferably trimmed to just the part of the screen you are interacting with.

 

I find that the save as function is a little frustrating sometimes because you need to remember to select the folder.  Just because you see the folder you want on the screen does not mean that it has been selected.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 4 replies
  • 1889 views
  • 2 likes
  • 4 in conversation