SAS OnlineTutorback||next

Try It! Practice dropping and keeping variables using the Clinic.Stress2 data set.

Creating HTML output? Read this first.

  1. Copy the program below and paste it into the Program Editor window (or issue the command copy sashelp.oltutor..source).
    data work.testtime;
       set clinic.stress2;
       if maxhr<155 or resthr<71;
    run;
    
    
  2. Modify the DATA step to prevent the variables ID and Name from being read and to keep only the variables TimeMin and TimeSec in the new data set.

  3. Submit the program and view the log messages about the DATA step. Work.TestTime should contain 8 observations.

  4. Print the data set and scroll through the output.  Does the new data set contain only 2 variables, in this case TimeMin and TimeSec?

    Return here and select Next.

Solution

back||next

Copyright © 2002 SAS Institute Inc., Cary, NC, USA.
All rights reserved.

Terms of Use & Legal Information | Privacy Statement