BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
bconner
Fluorite | Level 6

Hi,

 

Is there any way to use a Unicode character (long dash in this instance) in a picture format for a given value?  I need to replace missing values with it in a report.  The long dash appears in the ods text field but not on the 2nd line of the proc print output.

 

Thanks!

 

--Ben

 

ods html;

ods escapechar='^';

ods text='Test with ^{unicode 2014} character';

proc format;

picture uctest .='^{unicode 2014}' other=[5.1];

run;

data test;

r=1; output; r=.; output;

format r uctest.;

run;

proc print;

run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19
use VALUE instead of PICTURE since your picture format has no pictures. Or use PICTURE format option NOEDIT. Look at the documentation.

View solution in original post

4 REPLIES 4
data_null__
Jade | Level 19
use VALUE instead of PICTURE since your picture format has no pictures. Or use PICTURE format option NOEDIT. Look at the documentation.
bconner
Fluorite | Level 6

The (noedit)  option threw an error (ERROR: PICTURE options NOEDIT, FILL=, PREFIX=, and MULT= cannot be used with formats-as-labels or functions-as-labels.), but the value worked fine.

 

Had tried that earlier but got weird results in the actual report.  Worked fine this time though.

 

Thanks much!!

 

--Ben

data_null__
Jade | Level 19

@bconner wrote:

The (noedit)  option threw an error (ERROR: PICTURE options NOEDIT, FILL=, PREFIX=, and MULT= cannot be used with formats-as-labels or functions-as-labels.), but the value worked fine.

 

Had tried that earlier but got weird results in the actual report.  Worked fine this time though.

 

Thanks much!!

 

--Ben


I reckon you did not look at PROC FORMAT documentation as I suggested.

gabonzo
Quartz | Level 8

so, the accepted solution is: you can't use UNICODE in a picture format, correct?

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
  • 1344 views
  • 1 like
  • 3 in conversation