BookmarkSubscribeRSS Feed
csetzkorn
Lapis Lazuli | Level 10

I am using the code below to format currency values. Unfortunately, my Jupyter notebook shows a strange character Â like this:

 

£79,096,349

 

Any ideas?

 

proc print data=TransTemp NOOBS; 
		format 
		X	
		Y
		Z
		NLMNLGBP. 
		; 	

 

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Not enough information, where does it show this, is it the output window?  Have you tried creating an RTF or PDF file and seeing what the output is from that, I suspect that is a tab character or something like that and you are viewing plain text.

csetzkorn
Lapis Lazuli | Level 10

Thanks. It is the output in the SAS Jupyter notebook. Sorry if that was not clear.

sastpw
SAS Employee

@csetzkorn It is likely that encoding specified in the sascfg_personal.py file in your saspy configuration doesn't match the SAS Session encoding in the SAS session you're connected to.The other possibility, if they do match, is that the saspy version is a bit old, as I've fixed a number of issues recently regarding encodings and translated version of SAS.

I'm happy to help you here or via opening an Issue on the saspy github site:

https://github.com/sassoftware/saspy/issues

 

Either way. Just let me know!

Tom

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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