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 2024

innovate-wordmarks-white-horiz.png

SAS is headed back to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team.

Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!

Submit your idea!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1758 views
  • 0 likes
  • 2 in conversation