Learning SAS? Welcome to the exclusive online community for all SAS learners.

creating a library

Reply
Occasional Contributor
Posts: 19

creating a library

my code was   : -         Libname Jonty '/folders/My folders';

 

but liberary was not created even i created shared folder path and everything still hard luck 

 

responce was :- 

 

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
61
62 Libname Jonty '/folders/My folders';
NOTE: Library JONTY does not exist.
63
64 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
Super User
Posts: 6,945

Re: creating a library

Using blanks in path names is a VERY BAD IDEA. Since blanks are THE natural separators of objects in any type of computing system, using them complicates things unnecessarily. To separate words in path/filenames, use the underline:

/folders/my_folders

Next, make sure that the directory to which you want to assign the logical library name really exists.

How did you set up the shared folder when you installed the SAS UE virtual machine? Also keep in mind that SAS UE runs on a UNIX (Linux) system, and therefore all file and path names are case sensitive. "myfolders" is therefore not the same as "Myfolders"!

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 19

Re: creating a library

NOW WHERE I AM WRONG ???
code :- 
libname roney '/folders/my_folders/';
 
output :- 
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
61
62 libname roney '/folders/my_folders/';
NOTE: Libref RONEY refers to the same physical library as VINOD1.
WARNING: Library RONEY does not exist.
NOTE: Libref RONEY was successfully assigned as follows:
Engine: V9
Physical Name: /folders/my_folders
63
64 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
77
Super User
Posts: 17,840

Re: creating a library

You didn't follow the instructions, it needs to be myfolders - all lower case. Make sure the folder is set up like that in your Windows location and that the shared folder is set up. 

 

Otherwise, use the Server pane, navigate to the folder, right click and view the properties. It will have the path you need. 

Occasional Contributor
Posts: 19

Re: creating a library

NOW WHERE I AM WRONG ???
code :- 
libname roney '/folders/my_folders/';
 
output :- 
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
61
62 libname roney '/folders/my_folders/';
NOTE: Libref RONEY refers to the same physical library as VINOD1.
WARNING: Library RONEY does not exist.
NOTE: Libref RONEY was successfully assigned as follows:
Engine: V9
Physical Name: /folders/my_folders
63
64 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
77
Super User
Posts: 17,840

Re: creating a library

The underscore in my_folders.

 

 

libname roney '/folders/myfolders/';

 

This assumes you set up the shared folder correctly in the installation process. 

As I mentioned earlier, right click the folder and it will show you the path to use.

 

 

SAS Employee
Posts: 49

Re: creating a library

@Reeza has a great suggestion here that may help eliminate some of the frustration you are experiencing. I've included a quick step breakdown below.

 

SAS Studio file path.PNG

Occasional Contributor
Posts: 19

Re: creating a library

PLZ HELP ME WHERE I AM WRONG I TOOK WHOLE DAY TO DO IT BUT HARD LUCK

 

 

 

FOLDER PATH     :-           /*F:\SAS UNIVERSITY EDITION\My folder*/
CODE TO CREATE LIBRARY   :-     libname roney '/folders/my_folders/';

MACHINE :-  SETTINGS  :-   SHARED FOLDER   :-   F:\SAS UNIVERSITY EDITION\My folder

RESPONSE I GET  :-    

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
61
62 /*F:\SAS UNIVERSITY EDITION\My folder*/
63 libname roney '/folders/my_folders/';
NOTE: Libref RONEY refers to the same physical library as VINOD1.
WARNING: Library RONEY does not exist.
NOTE: Libref RONEY was successfully assigned as follows:
Engine: V9
Physical Name: /folders/my_folders
64
65 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

 

Super User
Posts: 17,840

Re: creating a library

1. Create a folder called myfolders - exactly on your computer (you called yours My Folders which is incorrect

2. Add that to the shared drive in Virtual Box, you'll likely have to stop VB, add shared folder and then restart the VM. 

3. Run the code I included above. 

 

These steps were in the installation instructions. 

 

This isn't hard luck, there's no element of luck.

Occasional Contributor
Posts: 19

Re: creating a library

Thank you so much......
it worked now
i spent entire day creating it
you saved me thank Reeza
Occasional Contributor
Posts: 19

Re: creating a library

image.png

HERE IS THE SCREEN SHOT  KINDLY CHECK WHERE I AM WRONG 

 

 

Ask a Question
Discussion stats
  • 10 replies
  • 202 views
  • 2 likes
  • 4 in conversation