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

I have a question for those who have taken the SAS Certified Specialist: Base Programming Using SAS 9.4 exam lately. I want to know how SAS libraries are created. For example, in my practice exam I used the following:

 

libname cert '/folders/myfolders/cert';

Would the exam follow the same pattern as above? Or do I have to use this below?

 

libname cert 'C:\cert\input';

How do I create a library reference named cert to refer to this directory above?

1 ACCEPTED SOLUTION
7 REPLIES 7
Patrick
Opal | Level 21

You need to understand how things like SAS libraries work before trying to take the certification exam. 

 

Both syntax you've posted are possible.

 

In your syntax:

CERT is the libref which is just the logical name pointing to a folder.

'<path>' that's then the actual path to a folder where you want to access SAS tables. It's a Unix path in the first example and a Windows path in the second example. 

The path must be accessible from where your SAS session executes so in the first example that must be SAS under Unix/Linux and in the 2nd example it's SAS under Windows.

 

 

Kurt_Bremser
Super User

@jeje wrote:

I have a question for those who have taken the SAS Certified Specialist: Base Programming Using SAS 9.4 exam lately. I want to know how SAS libraries are created. For example, in my practice exam I used the following:

 

libname cert '/folders/myfolders/cert';

Would the exam follow the same pattern as above? Or do I have to use this below?

 

libname cert 'C:\cert\input';

How do I create a library reference named cert to refer to this directory above?


The statements you posted do exactly this: create a library reference. The first uses a UNIX path, the second one for Windows.

jeje
Fluorite | Level 6
@ed_sas_member.... this is very helpful. Exactly what I am looking for...
ed_sas_member
Meteorite | Level 14

You’re welcome @jeje Smiley Happy

maggiem_sas
SAS Employee

Check out the SAS documentation for more info: SAS Libraries 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 7 replies
  • 2173 views
  • 1 like
  • 5 in conversation