BookmarkSubscribeRSS Feed
John_HW
Calcite | Level 5

Hi! I would like to tune the number of significant digits used inside the proc glm statement as the default is not sensitive enough. I've seen there is a format option in the code statement, so I've been trying to do it as seen below in my example, but getting the following error. Any help would be appreciated. Thanks.

 

ERROR 22-322: Expecting a format name.
ERROR 200-322: The symbol is not recognized and will be ignored.

 

proc glm data=train noprint;
	class a b c;
	model x= a b c d;
	code format = 20.7 file='control.sas';
quit;


data controlScore;
	set test;
	%include 'control.sas';
run;

 

2 REPLIES 2
Rick_SAS
SAS Super FREQ

Use Fw.d

code format = F20.7 file='control.sas';

John_HW
Calcite | Level 5
That worked, thank you.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 2 replies
  • 779 views
  • 0 likes
  • 2 in conversation