Page 11 - SAS_manual
P. 11

2.4 SAS program using arithmetic operator

               Program :













               Output:













               The statement that starts with list_price= is called an assignment statement. It is an instruction to
               perform the computation on the right-hand side of the equal sign and assign the resulting value to the
               variable named on the left. In this example, you are creating a new variable named list_price.


               This assignment statement uses basic arithmetic operators:

                               Operator                 Description                 Priority

                                   +                      Addition                   Lowest
                                   -                     subtraction                 Lowest
                                   *                   Multiplication                Highest
                                   /                      Division                   Highest
                                   **                   Exponential                  Highest
                                   –                     Navigation                  Highest









                                                    SAS HANDBOOK | VISIT:: http://nikhilanalytics.com  11
   6   7   8   9   10   11   12   13   14   15   16