Send As SMS

Thursday, January 18, 2007

PROC COMPUTAB Example

A Simple Example of PROC COMPUTAB
data example;
input year sales cost;
cards;
1988 83 52
1989 106 85
1990 120 114
;;;; run;

ods listing;
proc computab data=example; columns y1988 y1989 y1990 total; rows sales cost gprofit pctprofit; gprofit = sales - cost; y1988 = (year = 1988); y1989 = (year = 1989); y1990 = (year = 1990); col: total = y1988 + y1989 + y1990; row: pctprofit = gprofit / cost * 100; *****; run;

0 Comments:

Post a Comment

<< Home