Page 5 - SAS_manual
P. 5

Invalid SAS Names

                        SAS names           Reasons why it is invalid
                   8_is_enough           Begins with a number
                   Price per Pound      Contains blanks
                   Month-total              Contains an invalid character (-)

                   Num%                     Contains an invalid character (%)

               Rules for SAS Statements

                       There are only a few rules for writing SAS statements:

                       SAS statements end with a semicolon.
                       You can enter SAS statements in lowercase, uppercase, or a mixture of the two.
                       You can begin SAS statements in any column of a line and write several statements on the same
                       line.
                       You can begin a statement on one line and continue it on another line, but you cannot split a word
                       between two lines.


               1.4 SAS data sets and data types


               SAS reads data from anywhere (for example, raw data, and spreadsheets) and it stores the data in its
               own special form called a SAS data set. SAS has only two types of variables: character and numeric.

               1.5 The SAS Display Manager

               You might use a general-purpose text editor on a mainframe to written a SAS program, submit it, and
               send the output back to a terminal or to a file. On PCs, you might use the SAS Display Manager, where

               you write your program in the Enhanced editor (Editor Window), see any error messages and comments
               about  your  program  and  the  data  in  the  Log  window,  and  view  your  output  in  the  Output  window.  In
               addition  to  the  Enhanced  Editor,  an  older  program,  simply  called  the  Program  Editor,  is  available  for
               Windows and UNIX users.










                                                    SAS HANDBOOK | VISIT:: http://nikhilanalytics.com  5
   1   2   3   4   5   6   7   8   9   10