BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
ANKH1
Pyrite | Level 9

Hi,

I ran proc report and apparently it does not like when a value for character value has the symbol "<". The value is <0.0001. 

1 ACCEPTED SOLUTION

Accepted Solutions
ANKH1
Pyrite | Level 9

Thanks for responding. I realized that I just had to change off to on in protectspecialchars=on. This solved the problem!

The code for proc report is 

proc report data = dsout nowd missing split = '~' spacing=2 style(column)=[protectspecialchars=on asis=on];
column var estimate pvalue;
define ....;
run;

View solution in original post

4 REPLIES 4
A_Kh
Barite | Level 11

Hi, 

Can you post the sas code you ran as well?

Depending on assigned formats values may get displayed differently.  For example, <0.0001 seems like a p-value.  If so, then specifying pvalue6.4 format in define statement should resolve the issue. 

define varname/........format=pvalue6.4; 

 

ANKH1
Pyrite | Level 9

Thanks for responding. I realized that I just had to change off to on in protectspecialchars=on. This solved the problem!

The code for proc report is 

proc report data = dsout nowd missing split = '~' spacing=2 style(column)=[protectspecialchars=on asis=on];
column var estimate pvalue;
define ....;
run;
Reeza
Super User
Please mark the question as resolved and select the solution you posted regarding protectspecialchars option.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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