BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Lacona
Quartz | Level 8

Hey,

the vaxis values here are numeric and I want to change them into scientific notation.

Bild 02.09.19 um 12.57.jpg


SAS want to have an proper Format Name so I checked DSL2 list and found Format.ew. I tried to use it in combination with vformat, but  it didn't run.

1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc boxplot data=dombox;
 74         plot gross*dombox/grid vformat=format.ew;
                                           _________
                                           22
                                           201
 ERROR 22-322: Expecting ein Formatname.  
 ERROR 201-322: The option is not recognized and will be ignored.
 75         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE:  Verwendet wurde: PROZEDUR BOXPLOT - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 76         
 77         
 78         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 90         

How can I change the vaxis values into scientific notation, please?

 

Also I would like to have the graph nearer to the vaxis ... just in case someone has an idea about how to do that.

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
PeterClemmensen
Tourmaline | Level 20
proc boxplot data=dombox;
plot gross*dombox/grid;
format gross E8.;
run;

How about that?

View solution in original post

5 REPLIES 5
PeterClemmensen
Tourmaline | Level 20

Simply use a Format Statement and use E8. Format eg

Lacona
Quartz | Level 8
proc boxplot data=dombox;
plot gross*dombox/grid;
format E8;
run;

nothing changed, numeric values are still there 

PeterClemmensen
Tourmaline | Level 20
proc boxplot data=dombox;
plot gross*dombox/grid;
format gross E8.;
run;

How about that?

Lacona
Quartz | Level 8

works perfectly! 
Thank you!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1210 views
  • 0 likes
  • 2 in conversation