Help using Base SAS procedures

format native to another host?

Accepted Solution Solved
Reply
Super Contributor
Super Contributor
Posts: 444
Accepted Solution

format native to another host?

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


Accepted Solutions
Solution
‎07-31-2017 09:25 PM
Trusted Advisor
Posts: 1,570

Re: format native to another host?

[ Edited ]

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

View solution in original post


All Replies
Trusted Advisor
Posts: 1,570

Re: format native to another host?

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.

Super Contributor
Super Contributor
Posts: 444

Re: format native to another host?

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
Solution
‎07-31-2017 09:25 PM
Trusted Advisor
Posts: 1,570

Re: format native to another host?

[ Edited ]

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

Super Contributor
Super Contributor
Posts: 444

Re: format native to another host?

Just did and it worked!
Thank you Shmuel for the big help.Smiley Happy
☑ This topic is solved.

Need further help from the community? Please ask a new question.

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