SAS OnlineTutorback||next

Try It!
Examine variables by using the PUT statement.

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 interest;
       set finance.credit;
       if type='C' or type='D' then
         Total=transaction+(transaction*.18);
    run;
    Add a PUT statement to write a message to identify any values of Type other than C or D.

  2. Submit the DATA step. Read the log for your message. You should find two occurrences.

    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