Setting
Up Practice Data for SAS OnDemand for Academics
To set up your sample
data program in SAS OnDemand:
Navigate to https://github.com/sassoftware/sas-cert-prep-data.
Click the professional-prep-guide
directory.
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.
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.
Log on to SAS OnDemand
for Academics and open SAS Studio.
Right-click the Files (Home)
folder, and then select New→Folder.
Name the new folder certadv and
click Save.
Right-click the certadv folder
and select Upload Files.
Click Choose
Files and navigate to the certadv folder
within the practice-data folder on your local machine.
Select all program
files and click Open. All available programs
are listed under Select Files. Click Upload.
Open and edit the cre8data.sas program.
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.
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:
Navigate to https://github.com/sassoftware/sas-cert-prep-data.
Click the professional-prep-guide
directory.
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.
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.
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 Servers → Local → Files,
and then navigate to the Certadv folder in
the practice-data folder.
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.