<?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: A stored DATA STEP view cannot run under a different operating system in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723712#M224629</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't let that note bother you. You've created the DATA step view in your current WORK library just for the purpose of creating a temporary sort key for the subsequent PROC SQL step -- and that's what it does. You wouldn't even think of copying the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;origin.sas7bvew&lt;/FONT&gt; file (before it's deleted by closing the SAS session) to a permanent directory on a different computer with a different operating system and try to execute the view from a SAS installation there (where most likely neither dataset &lt;FONT face="courier new,courier"&gt;keepvar_1999_2001_1.sas7bdat&lt;/FONT&gt; exists nor libname &lt;FONT face="courier new,courier"&gt;my&lt;/FONT&gt; is defined).&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 23:13:44 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-03-04T23:13:44Z</dc:date>
    <item>
      <title>A stored DATA STEP view cannot run under a different operating system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723698#M224617</link>
      <description>&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today, when merging two datasets by using proc SQL (I do not use hash object thingy because it is quite a bit complex to me at this moment).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is as below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data origin / view=origin;
set my.keepvar_1999_2001_1;
_seqno=_n_;
run;

proc sql;
create table matching (drop=_seqno) as
select a.*, ex_rate
from origin a left join currency b
on a.CURCDD = b.CURCDD &amp;amp; a.DATADATE=b.DATADATE 
order by _seqno;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And the log is as below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: DATA STEP view saved on file WORK.ORIGIN.
NOTE: A stored DATA STEP view cannot run under a different operating system.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;First of all, regarding the operating system (OS), I took a look at a comment from the &lt;A href="https://communities.sas.com/t5/SAS-Programming/Error-when-importing-CSV-file-into-SAS/td-p/723288" target="_self"&gt;previous post&lt;/A&gt; by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;"I'm guessing you're using the wrong encoding option here, is the file created and being used on the same OS or are you crossing OS and languages here? For example, is it created out of a Unix System and read on a Windows System?&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can say I run all of them on a Window system.&lt;/P&gt;
&lt;P&gt;Secondly, I did a search about the document about this line of note, this &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=casdspgm&amp;amp;docsetTarget=p0ncz936o9pglin1d3jcgfewy0o8.htm&amp;amp;locale=en" target="_self"&gt;documentsas&lt;/A&gt; just mentioned this line of code and no further explanation. So, I am wondering if I need to care about that note.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 22:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723698#M224617</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-04T22:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: A stored DATA STEP view cannot run under a different operating system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723699#M224618</link>
      <description>Are you certain your SAS server is running on a Windows system and not Unix?</description>
      <pubDate>Thu, 04 Mar 2021 22:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723699#M224618</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-04T22:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: A stored DATA STEP view cannot run under a different operating system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723703#M224622</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry if my limited knowledge confuses you. From my point of view, I run all of the code or else on a computer running on a computer using Windows operating system. Other than that, I have no idea so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do not satisfy with my answer, please let me know how to validate the OS stuff from my computer or else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 22:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723703#M224622</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-04T22:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: A stored DATA STEP view cannot run under a different operating system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723712#M224629</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't let that note bother you. You've created the DATA step view in your current WORK library just for the purpose of creating a temporary sort key for the subsequent PROC SQL step -- and that's what it does. You wouldn't even think of copying the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;origin.sas7bvew&lt;/FONT&gt; file (before it's deleted by closing the SAS session) to a permanent directory on a different computer with a different operating system and try to execute the view from a SAS installation there (where most likely neither dataset &lt;FONT face="courier new,courier"&gt;keepvar_1999_2001_1.sas7bdat&lt;/FONT&gt; exists nor libname &lt;FONT face="courier new,courier"&gt;my&lt;/FONT&gt; is defined).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 23:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723712#M224629</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-03-04T23:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: A stored DATA STEP view cannot run under a different operating system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723713#M224630</link>
      <description>&lt;P&gt;This note&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;NOTE: DATA STEP view saved on file WORK.ORIGIN.
NOTE: A stored DATA STEP view cannot run under a different operating system.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is a reminder and you don't have to "fix" anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The concern is that some people will think a "view" is the same as a "data set". The View contains instructions on how to do something, in this case extract observations from your Keepvar data set. Some people try to copy views and send then to coworkers. If the coworker is running a different operating system then it will not work. If you think about the instructions as "fetch things from the library I defined" then you can see where the connection of the operating system can be important since sets are different and the instructions in a different operating system aren't likely to run locally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For extra added confusion you can actually use a data step that reads an external file to create view. As long as the external file is there when you use the view the file gets read. So since file paths would differ between operating systems that part can't work.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 23:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723713#M224630</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-04T23:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: A stored DATA STEP view cannot run under a different operating system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723719#M224635</link>
      <description>&lt;P&gt;A very clear example and explanation&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will notice this one when working with my co-authors in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 23:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723719#M224635</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-04T23:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: A stored DATA STEP view cannot run under a different operating system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723723#M224638</link>
      <description>Your computer is running Windows but SAS may not be installed on your computer or running from your computer so you cannot assume it's running on the same OS.  The commands are passed to the system, run and then the results are displayed on your machine but the actual processing is unlikely to be happening on your desktop. EG and Studio are usually indicators that you are not running locally. &lt;BR /&gt;&lt;BR /&gt;If you run the following, it will indicate the OS your SAS application is running on in the log output, see the blog post for example output. &lt;BR /&gt;&lt;BR /&gt;Proc setinit;run;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2016/08/02/two-steps-to-update-your-sas-license-and-check-if-it-is-updated/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2016/08/02/two-steps-to-update-your-sas-license-and-check-if-it-is-updated/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2021 23:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-stored-DATA-STEP-view-cannot-run-under-a-different-operating/m-p/723723#M224638</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-04T23:32:19Z</dc:date>
    </item>
  </channel>
</rss>

