Taxsim with SAS using a local copy

Chris Zogby suggests using the "pipe" option in SAS to make using taxsim quite easy. Here is an example that presumes taxsim9.exe and the

filename taxsim pipe "taxsim9 txpydata.raw 2>taxsim.msg"; data taxpayer; infile cards; input v1-v22; cards; 1 1970 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100000 ; run; data;set; file "txpydata.raw"; put v1-v22; run; data _null_; infile taxsim; input r1-r9; run; x cat taxsim.msg ; Check that tax is 16700.04. If it doesn't work, the most likely problem is that taxsim9.exe is not in the executable path. Error messages will be redirected to taxsim.msg by the filename statement, which you should consult if you see errors in the logfile.
Last update August 2014 by drf