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

hi,

i was given a  sas dataset to use and i noitced  it has some weird values in some of the  fields

for exmple an email field with values starting from any position

email

tom@yahoo.com

     miki@yahoo.com

 mia@yahoo.com

.....

.......

Tried left,compress,strip... nothing is  fixing this but also i noticed a  note in the log saying:

NOTE: Data file xx.FINAL12.DATA is in a format that is native to another host, or the file encoding does not match
      the session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might
      reduce performance.

 

how can this be  fixed?

 

thx

Tal

1 ACCEPTED SOLUTION

Accepted Solutions
Shmuel
Garnet | Level 18

Have you tried compress(var,' ','c') to remove control characters ?

View solution in original post

4 REPLIES 4
Shmuel
Garnet | Level 18

Except the log note - have you any issue getting wrong results ?

It seems that SAS overcame the issue of encoding and just noticed it to you.

Tal
Pyrite | Level 9 Tal
Pyrite | Level 9
I did not encounter eny errors in my logs. I was supposed to match this dataset with a kill file and remove bad records from it. I was expecting to kill more records though and the email was one of the fields i need to match on. Obviously the weird formatting of that field impacted the results. The other fields are properly formatted
Shmuel
Garnet | Level 18

Have you tried compress(var,' ','c') to remove control characters ?

Tal
Pyrite | Level 9 Tal
Pyrite | Level 9
Just did and it worked!
Thank you Shmuel for the big help.:)

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2468 views
  • 0 likes
  • 2 in conversation