y****g 发帖数: 285 | 2 I do not think you need a macro for this,
why not just use
proc freq
tables
or
proc summary ... ;
...
class firmname timeflag;
output out= ...;
To get results automatically from SAS, you can seperate the output table by
timeflag, then join the two tables by firmname and calculate the difference.
Then export the final table as a csv file or txt file
or you can do these steps in Excel |
|