<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: &amp;quot;DATA is in a format that is native to another host,&amp;quot; and yet it is not in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316158#M9057</link>
    <description>&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt; already mentioned, you have a problem with quotes. Macro variables are &lt;U&gt;not&lt;/U&gt; resolved inside single quotes.&lt;/P&gt;
&lt;P&gt;And you should not use any quotes around values when defining macro variables, &lt;U&gt;unless you want the quotes to be part of the macro variable value&lt;/U&gt;!&lt;/P&gt;
&lt;P&gt;The macro preprocessor only knows the data type text, so quotes are almost never needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in your example, your where condition is looking for the values &amp;amp;mgf1 and &amp;amp;mgf2, instead of the intended K and G.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2016 07:45:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-12-02T07:45:03Z</dc:date>
    <item>
      <title>"DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316103#M9043</link>
      <description>&lt;P&gt;1) I'm brand new here (and to programing) so sorry if this is in the wrong place.&lt;/P&gt;&lt;P&gt;2) my code keeps coming up with this message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasNote"&gt;Data file MYLIB.CEREAL.DATA is in a format that is native to another host, or the file encoding does not match the session&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;performance.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;BR /&gt;However, the data works just fine in my other uses for it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In class I brought this up to my professor concerning a different problem set and all I had to do was capitalize some letters inbetween quotation marks, so I think this has an easy fix but for the life of me I can't figure it out. I've been messing with this for the better part of an hour and still it won't come up. I'm attaching a screenshot of what the dataset looks like (in case it's something silly like capitalization again).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My code:&amp;nbsp;&lt;BR /&gt;%let mgf1 = 'K';&lt;BR /&gt;%let mgf2 = 'G';&lt;BR /&gt;%let Nutrient = Sugar;&lt;BR /&gt;proc ttest data=MyLib.cereal h0=0 alpha=0.05 sides=2 ;&lt;BR /&gt;class mgf;&lt;BR /&gt;where mgf in('&amp;amp;mgf1','&amp;amp;mgf2');&lt;BR /&gt;var &amp;amp;Nutrient;&lt;BR /&gt;title '&amp;amp;Nutrient affect on &amp;amp;mgf1 and &amp;amp;mgf2';&lt;BR /&gt;run;&lt;BR /&gt;title;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13216i7CBEC800C87D2399/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-12-01 at 5.53.35 PM.png" title="Screen Shot 2016-12-01 at 5.53.35 PM.png" /&gt;</description>
      <pubDate>Thu, 01 Dec 2016 22:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316103#M9043</guid>
      <dc:creator>kimmy_m66</dc:creator>
      <dc:date>2016-12-01T22:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: "DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316105#M9044</link>
      <description>&lt;P&gt;I'm assuming you didn't create this dataset. Since someone else created it, if the created it on a different system you get this NOTE. It's not an issue and shouldn't affect your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to remove it from appearing, copy your data over to work and use it from there instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Brings it into your system*/
data cereal;
set mylib.cereal;
run;

/*writes it back out as your system*/
data mylib.cereal;
set cereal;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And now use cereal instead of mylib.cereal. You shouldn't see the error message anymore.&lt;/P&gt;
&lt;P&gt;You could replace the dataset with the one you just created to remove the error entirely.&lt;/P&gt;
&lt;P&gt;I think the quotes error is different and relates to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option validvarname = Any/V7.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 22:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316105#M9044</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-01T22:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: "DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316106#M9045</link>
      <description>I just tried that. Now I'm getting " No observations were selected from data set WORK.CEREAL."</description>
      <pubDate>Thu, 01 Dec 2016 23:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316106#M9045</guid>
      <dc:creator>kimmy_m66</dc:creator>
      <dc:date>2016-12-01T23:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: "DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316107#M9046</link>
      <description>&lt;P&gt;Please show the complete code you used to copy the dataset and what generated the message about "zero observations". May be a spelling error in the data set name one way or another&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 23:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316107#M9046</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-01T23:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: "DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316109#M9047</link>
      <description>&lt;P&gt;data cereal;&lt;BR /&gt;set mylib.cereal;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%Let mgf1='G';&lt;BR /&gt;%Let mgf2='Q';&lt;BR /&gt;%Let Nutrient=Sodium;&lt;BR /&gt;title "&amp;amp;Nutrient affect on &amp;amp;mgf1 and &amp;amp;mgf2";&lt;BR /&gt;proc ttest data=cereal h0=0 alpha=0.05 sides=2 ;&lt;BR /&gt;class Mgf;&lt;BR /&gt;where Mgf in('&amp;amp;mgf1','&amp;amp;mgf2');&lt;BR /&gt;var &amp;amp;Nutrient;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I'm thinking it's something to do capitalization or ; or something silly. Because it wasn't reading the observations when it was in the library either.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 23:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316109#M9047</guid>
      <dc:creator>kimmy_m66</dc:creator>
      <dc:date>2016-12-01T23:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: "DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316114#M9048</link>
      <description>&lt;P&gt;It's possible it's case sensitive, or the library declaration is case sensitive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you right click the dataset and hit properties one field should have the dataset name. Use that to refer to it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 23:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316114#M9048</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-01T23:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: "DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316122#M9050</link>
      <description>&lt;P&gt;The thing is, the library worked in a different dataset. It's when I started doing %Let that it doesn't recognize the dataset&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 00:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316122#M9050</guid>
      <dc:creator>kimmy_m66</dc:creator>
      <dc:date>2016-12-02T00:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: "DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316140#M9055</link>
      <description>&lt;P&gt;You have too many quotation marks. You have quotes when you use your macro variables and in your macro variable definition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drop the quotations marks from the macro variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also need double quotes in your WHERE clause so the macro variables resolve, otherwise they won't. And that's probably why you have no results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cereal;
set mylib.cereal;
run;
%Let mgf1=G;
%Let mgf2=Q;
%Let Nutrient=Sodium;
title "&amp;amp;Nutrient affect on &amp;amp;mgf1. and &amp;amp;mgf2.";
proc ttest data=cereal h0=0 alpha=0.05 sides=2 ;
class Mgf;
where Mgf in("&amp;amp;mgf1","&amp;amp;mgf2");
var &amp;amp;Nutrient;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Dec 2016 04:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316140#M9055</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-02T04:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: "DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316158#M9057</link>
      <description>&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt; already mentioned, you have a problem with quotes. Macro variables are &lt;U&gt;not&lt;/U&gt; resolved inside single quotes.&lt;/P&gt;
&lt;P&gt;And you should not use any quotes around values when defining macro variables, &lt;U&gt;unless you want the quotes to be part of the macro variable value&lt;/U&gt;!&lt;/P&gt;
&lt;P&gt;The macro preprocessor only knows the data type text, so quotes are almost never needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in your example, your where condition is looking for the values &amp;amp;mgf1 and &amp;amp;mgf2, instead of the intended K and G.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 07:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316158#M9057</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-02T07:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: "DATA is in a format that is native to another host," and yet it is not</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316441#M9074</link>
      <description>&lt;P&gt;Yes thank you! This was the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Got it all figured out before it was due luckily&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 23:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/quot-DATA-is-in-a-format-that-is-native-to-another-host-quot-and/m-p/316441#M9074</guid>
      <dc:creator>kimmy_m66</dc:creator>
      <dc:date>2016-12-02T23:55:10Z</dc:date>
    </item>
  </channel>
</rss>

