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!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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