Is it possible to have two different formats for the Y1 and Y2 axis labels? For example, the Y1 axis labels might have a format of z5.3 and the Y2 axis labels might have a format of 3.1. I can't seem to figure where, if possible, the two formats would be positioned.
The plot and plot2 axes should display the values using whatever format is assigned in the data set, or you can specify a format in the 'proc gplot' to over-ride that. Here is an example of the latter:
proc gplot data=sashelp.stocks (where=(stock='IBM'));
format close dollar5.0;
format volume z10.;
plot close*date=1;
plot2 volume*date=2;
run;
(of course, with the limitation that device=java and device=activex might not support all the SAS formats, if you're using one of those devices)
Missed SAS Innovate in Orlando?
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.