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.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!

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.

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