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.

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