Page 117 - SAS_manual
P. 117

Log window:










               Note: If incase by mistake two continuous & are there then SAS MACRO will convert it into one &.

               Conditional statements:

               Program 10.9:
























               Log window:










               To  avoid  mangling  your  macros,  always  write  them  one  piece  at  a  time.  First  write  your  program  in
               standard  SAS  code.When  that  is  working  and  bug-free,  then  add  your  %MACRO  and  %MEND
               statements. When that is working, then add yourparameters, if any, one at a time.

               Base SAS is more efficient than macros in case of time and efficiency.








                                                    SAS HANDBOOK | VISIT:: http://nikhilanalytics.com  117
   112   113   114   115   116   117   118   119   120   121   122