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
Lapis Lazuli | Level 10

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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 658 views
  • 0 likes
  • 3 in conversation