SAS OnlineTutorback||next

Try It! Trim trailing blanks from a variable. Use the SAS data set Act.Talent.

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 act.talentv2(drop=lastname firstname);
       set act.talent;
       FullName=lastname||', '||firstname;
    proc print data=act.talentv2;
    run;
  2. Submit the program and view the new variable FullName.
     
  3. Revise the DATA step to trim trailing blanks from the variable LastName.
     
  4. Resubmit the step. View the values of FullName.

    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