Using PROC TRANSPOSE
Overview
In the previous section, we compared actual revenue
values to target revenue values using an array as a lookup table.
Remember the following:
-
Sasuser.Monthsum has an observation for each month and year.
Table 16.12 SAS Data Set Sasuser.Monthsum (first five observations of selected variables) SaleMonRevCargoMonthNoJAN1997$171,520,869.101JAN1998$238,786,807.601JAN1999$280,350,393.001FEB1997$177,671,530.402FEB1998$215,959,695.502 -
Sasuser.Ctargets has one variable for each month and one observation for each year.
Table 16.13 SAS Data Set Sasuser.Ctargets (selected variables) YearJanFebMarAprMayJun1997192284420 ...
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.