Resources

Column Selection Example for PROC COMPUTAB


/*--------------------------------------------------------------

                    SAS Sample Library

        Name: ctasx02.sas
 Description: Example program from SAS/ETS User's Guide,
              The COMPUTAB Procedure
       Title: Column Selection Example for PROC COMPUTAB
     Product: SAS/ETS Software
        Keys: programmable tabular reports
        PROC: COMPUTAB
       Notes:

--------------------------------------------------------------*/

data rept;
   input div sales cgs;
datalines;
2   106    85
3   120   114
1    83    52
;

proc computab data=rept;
   row div sales cgs;
   columns div1 div2 div3;
   _col_ = div;
run;