Page 19 - SAS_manual
P. 19

You have a challenge to input the above mentioned data and print the data as it shown.


               Input pid4. +1 pname$6. +4 team $6.  +1 hit3.  +4wt2. ;

               +1         1 no of space it jump. But you think how it decides to jump 1 space. For variable PNAME length
               of the string is 6 so we used 6. as width method . Starting column of the string is 6  and the previous
               variable PID ends at column no 4.


               N=Starting column of the string-previous variable column number-1
               Here as per formula we get 1. So we used +1.
               Program 3.8:















               Output:














                       Column pointer width method
                       @n         Go to nth column number
                                             th
                       If we take @6       Go to 6  column number










                                                    SAS HANDBOOK | VISIT:: http://nikhilanalytics.com  19
   14   15   16   17   18   19   20   21   22   23   24