data months;
do i=1 to 4;
month=intnx('month',today(),i,'b');
output;
end;
format month yymm7.;
run;
This is what I see in viewtable in SAS 9.4M5 Windows 10. The column for MONTH is too narrow. Yes, I can manually expand the column to see the values of the data, but this gets tiresome after having to do this all the time (and my real data has several month columns). So, how do I fix this programmatically so that viewtable will make the column wide enough?
Did you try using a different font? Not sure what setting impacts ViewTable, but there are font setting options in Display Manager. Tools -> Options -> Font...
Any explanation why viewtable works with YYMM9. but not YYMM7. ?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.