Using Sample Data

Setting Up Practice Data for SAS OnDemand for Academics

To set up your sample data program in SAS OnDemand:
  1. Navigate to https://github.com/sassoftware/sas-cert-prep-data.
  2. Click the professional-prep-guide directory.
  3. Open the cre8data.sas program and click Raw. Right-click anywhere on the screen and select Save As. Save the cre8data.sas program to a location that is accessible to SAS.
  4. Open the cre8premdata.sas program and click Raw. Right-click anywhere on the screen and select Save As. Save the cre8premdata.sas program to the same location as cre8data.sas.
  5. Log on to SAS OnDemand for Academics and open SAS Studio.
  6. Right-click the Files (Home) folder, and then select NewFolder.
  7. Name the new folder certadv and click Save.
  8. Right-click the certadv folder and select Upload Files.
  9. Click Choose Files and navigate to the certadv folder within the practice-data folder on your local machine.
  10. Select all program files and click Open. All available programs are listed under Select Files. Click Upload.
  11. Open and edit the cre8data.sas program.
  12. In the Path macro variable, replace /folders/myfolders with the path to the certadv folder. Right-click the certadv folder in SAS Studio and click Properties. Copy the path in the Location box and paste it into your %LET statement.
  13. Save and then run the cre8data.sas program.
Your practice data is now created and ready for you to use.
Note: When you end your SAS session, the Path macro variable in the cre8data.sas program is reset. To avoid having to rerun cre8data.sas every time, run the libname.sas program from your sample data folder to restore the libraries.

Setting Up Practice Data in Other SAS Environments

To complete examples in this book, you must have access to the SAS windowing environment, SAS Enterprise Guide, or SAS Studio (or SAS University Edition). To access the sample data files and create your practice data:
  1. Navigate to https://github.com/sassoftware/sas-cert-prep-data.
  2. Click the professional-prep-guide directory.
  3. Open the cre8data.sas program and click Raw. Right-click anywhere on the screen and select Save As. Save the cre8data.sas program to a location that is accessible to SAS. It is recommended that you create a new folder named Certadv in the location that is accessible to SAS and save the cre8data.sas program in the Certadv folder. The librefs that are associated with this book use Certadv as the libref name.
  4. Open the cre8premdata.sas program and click Raw. Right-click anywhere on the screen and select Save As. Save the cre8premdata.sas program to the same location as cre8data.sas.
  5. Open the cre8data.sas program in the SAS environment of your choice. SAS windowing environment: Click File→ Open Program, and then navigate to the Certadv folder in the practice-data folder. SAS Studio: In the Navigation pane, expand Files and Folders and then navigate to the Certadv folder within the practice-data folder. SAS Enterprise Guide: In the Servers list, expand ServersLocal Files, and then navigate to the Certadv folder in the practice-data folder.
  6. In the Path macro variable, replace /folders/myfolders with the path to the folder where you saved your practice data and run the program %let path=/folders/myfolders/my-folder-name;
Important: The location that you specify for the Path macro variable and the location of your downloaded SAS programs should be the same location. Otherwise, the cre8data.sas program cannot create the practice data.
Your practice data is now created and ready for you to use.
Note: When you end your SAS session, the Path macro variable in the cre8data.sas program is reset. To avoid having to rerun cre8data.sas every time, run the libname.sas program from your sample data folder to restore the libraries.
Last updated: October 16, 2019
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.47.155