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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 978 views
  • 1 like
  • 3 in conversation