BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DmytroYermak
Lapis Lazuli | Level 10

Hi all,

 

Could you please help to "decrypt" the following error:

NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format.

 

 How to define what is the format that is 'smal'. I have here at least 10.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

1) NOT an error

 

Check the values of your numeric variables for those less than 0.001 or 0.0001 (for the 8.4). I would guess that a StdDev is a likely culprit. Or sqrt(exp(LN_QVAL_StdDev**2)-1))*100

 

proc means data=table3 min;

   var _numeric_;

run;

might give you a starting point.

 

Or print your output and find the results with more leading zeroes such as  0.0000123

 

And why are you assigning a format of $200 for variables that should only have 8 characters length with the put function?

 

You can avoid all those Strip calls if you use put(variable,8.3 -L) to left align the output.

View solution in original post

3 REPLIES 3
Reeza
Super User

Comment out half your code and run it. If the error persists, its in the half not commented out. 
Rinse and repeat.

 

Astounding
PROC Star

There are only 68 observations.  Print out the ???_C variables and look for values that look funny.

ballardw
Super User

1) NOT an error

 

Check the values of your numeric variables for those less than 0.001 or 0.0001 (for the 8.4). I would guess that a StdDev is a likely culprit. Or sqrt(exp(LN_QVAL_StdDev**2)-1))*100

 

proc means data=table3 min;

   var _numeric_;

run;

might give you a starting point.

 

Or print your output and find the results with more leading zeroes such as  0.0000123

 

And why are you assigning a format of $200 for variables that should only have 8 characters length with the put function?

 

You can avoid all those Strip calls if you use put(variable,8.3 -L) to left align the output.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 3 replies
  • 22278 views
  • 2 likes
  • 4 in conversation