SAS OnlineTutorback||next

Try It! In the Program Editor window, enter, save, and submit a SAS program.

Caution: Be sure to complete this practice. You'll use the saved file in a later practice.

Creating HTML output? Read this first.

  1. If the Program Editor and Log windows are not visible, redisplay them.

  2. Copy the program below and paste it into the Program Editor window (or issue the command copy sashelp.oltutor..source).
    data sasuser.mysalesdata;
       set sashelp.prdsale;
       if product="SOFA";
    run;
    

    This program creates a new table, Mysalesdata (which is stored in the Sasuser library) by reading the Prdsale table stored in the Sashelp library. The new table contains only rows where the value of the column Product is SOFA.

  3. Select File --> Save As. Save the program as mysales.sas in your My SAS Files directory (or in your default file storage location). In the CMS operating environment, specify mysales sas in quotation marks as the filename and filetype.

  4. Select Run --> Submit. Notes about your program and its processing are written to the Log window.

    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