02-29-2012 06:52 PM
I am working on this problem where I need to have an * by the highest value in a report.
This is my original code:
proc sql flow=6 35;
title 'Orion Library Table Information';
select memname, nobs label='Rows', nvar label='Columns', filesize label='File Size', maxvar label='Widest Column'
where libname="ORION" and
memtype ne 'VIEW';
I tried to create a case for the maxvar that was:
else maxvar format
end as Widest_Column
However, I got the following error when I tried to do that:
Result of WHEN clause 2 is not the same data type as the preceding results.
I am not sure how to do this, but if anyone can help me with this, it will be greatly appreciated.
Need further help from the community? Please ask a new question.