SAS Programming

DATA Step, Macro, Functions and more
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 

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 3239 views
  • 1 like
  • 5 in conversation