BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

Hello,

 

I am doing a proc compare and for some reason, I don't know , one of the field : client_email value

are converted to the second value instead of the first value.  @ is converted into à

 

Is there a simple way to avoid that?

 

66  ||  IRDENNIS@ICLOUD.COM   IRDENNISàICLOUD.COM 
2 REPLIES 2
jimbarbour
Meteorite | Level 14

@alepage wrote:

one of the field : client_email value

are converted to the second value instead of the first value.  @ is converted into à

 

Is there a simple way to avoid that?

 

66  ||  IRDENNIS@ICLOUD.COM   IRDENNISàICLOUD.COM 

Is the same issue as on your other post?  Is this from EBCDIC?

 

As a quick work-around, you could do the below, but if there are other à characters in the data, this will not work.  For example, and email address of Thomas_à_Kempisàemail.com would not work with this quick work-around.  You would have to examine your data.

 

Jim

 

 

DATA	Have;
	INPUT	Email_Address	:	$64.;
DATALINES;
IRDENNISàICLOUD.COM
;
RUN;	

DATA	Want;
	SET	Have;
	Email_Address	=	TRANSLATE(Email_Address,'@','à');
RUN;

 

 

SASKiwi
PROC Star

If you want a solution then please post the code that is causing the problem in the first place.

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 2 replies
  • 851 views
  • 1 like
  • 3 in conversation