Exercise 1Create a data set that contains the following variables:Bank: Bank of AmericaRate: 3.23Year: 5Name the data set as RATE.
Answer:Data Rate;Bank = "Bank of America";Rate = 3.23;Year = 5;Run;
Exercise 2Create a data set that contains the following variables:
Save the data set as DEMO.
Answer:Data Demo;Length ID $6 Race $9 Gender $6;Input ID $ Race $ Gender $ Age;Datalines;APP001 Black Male 30APP002 Caucasian Female 25APP003 Asian Male 24APP004 Black Female 32APP005 Caucasian Female 26;Run;
Exercise 3Locate the FISH data set from the SASHelp library.
Create a subset of the FISH data set and name it as PERCH. PERCH should contain only the observations where SPECIES is reported as "Perch". Save the data set in the WORK library.
Answer:Data Perch;Set SASHelp.Fish;If Species = "Perch";Run;
Username or Email Address
Registration confirmation will be emailed to you.