BookmarkSubscribeRSS Feed
tholfikar
Calcite | Level 5

how i can practice using  the data set in SAS certification prep Guide ( BASE programming for SAS 9 third Edition) in SAS Studio

is the data set for (SAS certification Prep Guide ) available online for free ?

thanks a lot

10 REPLIES 10
Reeza
Super User

Yes, but you'll need to modify the code to set it up to run on SAS Analytics U version.

prober
Calcite | Level 5

Is there any reference book for modifying?

mehreen7
Obsidian | Level 7

1.) Open the text file http://support.sas.com/publishing/cert/sampdata.txt in an application that can work with text files.

2.)  In the Menu bar, click 'Edit', and then scroll down to 'Find' and locate the function 'Find and Replace' and select it.

3.) In the 'Find' category, enter 'sasuser' and in the 'Replace' category enter 'basecert'. Select 'Replace All', and save the file under a name that you can remember.

     You will use this edited text file to create and save data sets in SAS Studio in a user-defined library called 'basecert'.

4.) Open up SAS Studio as usual, and select 'Folders' and then select 'MyFolders'. Click the icon to create 'New Folder' and name this folder 'basecert'.

5.) Go to 'Libraries' an click the icon for  'New Library'. Under 'Name', enter 'basecert' (omit the quotations around 'basecert' when doing this). Under 'Path', enter '/folders/myfolders' (omit the quotation marks around '/folders/myfolders' when doing this).

6.) Click 'Code', and in the text editor called 'Program 1' paste the entire modified text file that you saved earlier. Now, save this new SAS program as 'basecert_setup'.

7.) Run 'basecert_setup' using the 'run' icon. Since my solution is not perfect, 3 errors will be generated. However, all the intended SAS data sets should be created.

I don't know how to get rid of the 3 error messages, but if someone figures out a solution please post it!

prober
Calcite | Level 5

Finally the thread post SAS Certification program problem make sense.

bdanielatl
Calcite | Level 5

I had to replace the SASUSER library with the WORK library, but it seems to have worked so far.

 

(Requires replacing some of the library refs in the code as well, e.g. clinic.admin -> work.admit)

 

Hope that helps.  I'm working on an enterprise server with more restricted permissions.

Cynthia_sas
SAS Super FREQ

The newest program for the Certification Prep Guide is here http://support.sas.com/publishing/cert/basecertguide3.html and has been posted here since 2015.

This is an older post. The original sampdata.txt wrote to the SASUSER library. The issue with the SASUSER library is that frequently EG users, SAS University Edition users and SAS OnDemand Users do NOT have access to the SASUSER library. We recommend following the instructions on the above web site to "redirect" SASUSER to a location where you have write access (such as WORK or a write-location directory) and then run the program you find on the web site.

 

If you do the "redirect", then you do NOT have to change any code -- because this:

libname sasuser '/folders/myfolders/certprep';  (assuming you make a folder called certprep) will allow you to use the programs that reference SASUSER and the redirected location will be the one used.

cynthia

tonderai
Calcite | Level 5
the site http://support.sas.com/publishing/cert/basecertguide3.html does not lead to any instructions it goes to sas books.
Cynthia_sas
SAS Super FREQ
Sorry, that web site has changed.

-- Instructions for making the sample data for the 3rd Edition of the Prep Guide: https://support.sas.com/en/books/content-updates-base-prep-guide.html (instructions are correct, but the link on this page to get data is broken, use the link below)
--Link for program used in these instructions: https://support.sas.com/content/dam/SAS/support/en/books/data/sampledata.txt

Hope this helps,
Cynthia
tonderai
Calcite | Level 5

thanks i used this link to get the instructions and it worked

 

https://support.sas.com/en/books/content-updates-base-prep-guide.html

pgees
Calcite | Level 5
It works like magic! I had no error. Thanks for your distinguished SAS insight!

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 10 replies
  • 17879 views
  • 6 likes
  • 8 in conversation