cancel
Turn on suggestions
Showing results for
Search instead for
Did you mean:
BookmarkSubscribeRSS Feed
Quartz | Level 8

I'm kind of confused about what a library is. I think it's just a folder that contains folders and files, but this is not clear to me. If a library doesn't have any files (but rather has files in subfolders), will files not be accessible? Would we/can therefore add another libref to a subfolder to access those files within subfolders?

0 Likes
21 REPLIES 21
Diamond | Level 26

Whatever folder(s) the LIBNAME statement mentions must contain the SAS data set files. SAS doesn't look in subfolders, unless you specifically state the subfolder in the LIBNAME statement.

Would we/can therefore add another libref to a subfolder to access those files within subfolders?

Other way around ... add a subfolder to the LIBNAME statement.

--
Paige Miller
Fluorite | Level 6

I have a question about library in SAS ODA. In the screenshot shared below, please see the library 'CURESDAY', which was originally created as a SAS ODA library and it used to be displayed as a library under 'My Library' folder. However, from yesterday I don't see that library listed under 'My library'. Instead, I see it under files table. Also, please note that 'Files (Home)' used to be displayed on the left-hand panel of the screen, but it is currently now showing there either.

Please advise on how I can see my "CURESDAY" library and 'My Files (home)' items on the left hand side of my SAS ODA screen as it was shown earlier until yesterday evening.

Thank you in advance for your advice.

With regards,

akhan1971_1-1706715505389.png

0 Likes
SAS Super FREQ

Cool feature in SAS Studio is you can right-click on a folder when in the Server Files and Folders tab, & then select Create -> Library. This will bring up a pop-up window where you can supply the libref for this folder & also check a box to assign the library every time you start SAS Studio so you never have to do this again (librefs are deleted when you close or reset your SAS session).

Note: This only works for creating Base SAS libraries.

tom_grant_1-1706717088998.png

0 Likes
Fluorite | Level 6

Thank you for your advise. But I beleive I could convey my encountered issue clearly. I wanted to mean that my encirled folders in blue line were once shown on the left hand side menu, but at present they seem to have disappeared from the left hand side menu. How can I bring these essential folders such as "odaws01-ws2' folder , 'File (home)' , and a library folder named 'curesday' etc. back to left hand side menu? Thank you once again. (please see the screenshot in this regard shared below and also attached as PDF file. Thank you.)

akhan1971_1-1706794581191.png

0 Likes
Fluorite | Level 6
Thank you for your advise. But I beleive I could convey my encountered issue clearly. I wanted to mean that my encirled folders in blue line were once shown on the left hand side menu, but at present they seem to have disappeared from the left hand side menu. How can I bring these essential folders such as 'File (home)' , a library folder named 'curesday' etc. back to left hand side menu? Thank you once again.
0 Likes
SAS Super FREQ
Can you send a screen shot of what your Server Files and Folders tab looks like now??
0 Likes
Fluorite | Level 6

Thank you Mr. Grant for your response!

Please see attached the screen shot in pdf format (the same screenshot is copied below in .jpeg format).

Please note that at present i don't see 'odaws01' folder, "files (home)" folder, and "CURESDAY" folder on the left hand side.

But they were available on the left hand side menu a previously. Something has happened, causing them to disappear (aparently to to another location that I am having issues in relocating).

Thank you.

akhan1971_0-1706796056803.png

0 Likes
SAS Super FREQ

Thanks for screen shot. So you've lost your Server Files and Folders tab. This is an easy fix. Go to the icon on Top Right that looks like a hamburger & click & select View. Then check the Server Files and Folders. Somehow it got un-selected.

tom_grant_0-1706802844636.png

0 Likes
Fluorite | Level 6
Thank you so much!
It worked!
Best regards.
Fluorite | Level 6

Many thanks!.

Solved my own problem with not seeing my library folders.

0 Likes
Calcite | Level 5

Hi,i'm strugling with the restarting of pg1 library

"

Reminder: If you restarted your SAS session,you must recreate thePG1library so you can access your practice files. In SAS Studio, open and submit thelibname.sasprogram in theEPG1V2folder. In Enterprise Guide, run theAutoexecprocess flow."

and my syntax to this is

libname pg1"/home/u63850715/EPG1V2/data";

after all this the library also successfully creating but it is empty,

pull me out from this stuck.

0 Likes
Diamond | Level 26

Did you submit the SAS commands in libname.sas in theEPG1V2folder??

What are the commands in libname.sas?

--
Paige Miller
0 Likes
Calcite | Level 5

no specific commands are there in libname.sas it was coded to create library in previous lessons, now it is asking for recovery,but when i'm opening the file in EPG1V2 FOLDER.

I'm providing the attachment of my screen shot.

0 Likes
Diamond | Level 26

I never download attachments. Please paste the screen capture into your reply, or include it using the "Insert Photos" icon.


@u63850715 wrote:

no specific commands are there in libname.sas it was coded to create library in previous lessons, now it is asking for recovery,but when i'm opening the file in EPG1V2 FOLDER.

I'm providing the attachment of my screen shot.


This seems to contradict what you said earlier, which I believe is from the instructions you received: "If you restarted your SAS session,you must recreate thePG1library so you can access your practice files. In SAS Studio, open and submit thelibname.sasprogram in theEPG1V2folder"

--
Paige Miller

sasinnovate.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just 495ドル!

Register now

LIBNAME 101

Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
[フレーム]

AltStyle によって変換されたページ (->オリジナル) /