SAS OnlineTutorback||next

Try It!
Control the length of DATA step variables.

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 finance.totals;
       set finance.credit;
    run;
    
    Modify the DATA step to assign the value Debit to Label if the data set variable Type is D. Otherwise, assign the value Credit to the variable Label.

  2. Submit the DATA step and print the data set. Compare the values of Label in Finance.Totals to the values assigned in the DATA step. If needed, modify the DATA step and resubmit.

    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