<?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: View libname.memname was terminated due to errors in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/View-libname-memname-was-terminated-due-to-errors/m-p/726136#M225637</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;SAS data step views are compiled executables and cannot work in a different operating system.&lt;/P&gt;&lt;P&gt;This is the reason for this statement. "NOTE: A stored DATA STEP view cannot run under a different operating system".&lt;/P&gt;&lt;P&gt;If it is desired to run the view on a different operating system, it is better to copy the source code and recreate the view.&lt;BR /&gt;Have a look here&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=engsas7bdat&amp;amp;docsetTarget=n1h8ok8rj6uzqkn18tpnp1lb4lp9.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=engsas7bdat&amp;amp;docsetTarget=n1h8ok8rj6uzqkn18tpnp1lb4lp9.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Mar 2021 17:14:23 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2021-03-14T17:14:23Z</dc:date>
    <item>
      <title>View libname.memname was terminated due to errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/View-libname-memname-was-terminated-due-to-errors/m-p/726005#M225584</link>
      <description>&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;Today I faced a strange problem. The log does not announce the error but the Output data announces error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I posted here a part of my code and the log of this one, if it is still ambiguous, please let me know how to clarify it better. Thanks in advance.&lt;/P&gt;
&lt;P&gt;So, the dataset of interest here is vw_amihud&lt;/P&gt;
&lt;P&gt;The only code relevant to this dataset in my whole code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vw_amihud/ view=vw_amihud;
	set inter;
		by gviidkey;
		lagsum_ann_mar_cap=ifn(first.gviidkey,.,lag(sum_ann_mar_cap));
		lagann_mar_cap=ifn(first.gviidkey,.,lag(ann_mar_cap));
		vw_amh=amihud*lagann_mar_cap/lagsum_ann_mar_cap;
run;

proc means data=_w.vw_amihud noprint nway;
	class LOC year;
	var vw_amh;
	output out=agg_amihud_vw sum=agg_amh_vw;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The associated log is&lt;/P&gt;
&lt;PRE&gt;190        data vw_amihud/ view=vw_amihud;
191        	set inter;
192        		by gviidkey;
193        		lagsum_ann_mar_cap=ifn(first.gviidkey,.,lag(sum_ann_mar_cap));
194        		lagann_mar_cap=ifn(first.gviidkey,.,lag(ann_mar_cap));
195        		vw_amh=amihud*lagann_mar_cap/lagsum_ann_mar_cap;
196        run;

NOTE: DATA STEP view saved on file WORK.VW_AMIHUD.
NOTE: A stored DATA STEP view cannot run under a different operating system.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      

197        
198        proc means data=_w.vw_amihud noprint nway;
199        	class LOC year;
200        	var vw_amh;
201        	output out=agg_amihud_vw sum=agg_amh_vw;
202        run;

NOTE: Missing values were generated as a result of performing an operation on missing values.
      Each place is given by: (Number of times) at (Line):(Column).
      22251 at 1921:16   
NOTE: View _W.VW_AMIHUD.VIEW used (Total process time):
      real time           0.05 seconds
      cpu time            0.06 seconds
      
NOTE: There were 52169 observations read from the data set WORK.INTER.
NOTE: There were 52169 observations read from the data set _W.VW_AMIHUD.&lt;/PRE&gt;
&lt;P&gt;And there is no errors or warning, or strange note here from my standpoint&lt;/P&gt;
&lt;P&gt;However, after running the whole code, it announces this error. I checked for all outputs and only this output is unable to be opened (announcing errors)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1615588662161.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55900i961F57E5F2C65BD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_0-1615588662161.png" alt="My97_0-1615588662161.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me to sort it out?&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;UPDATE: When I delete the view=v_amihud&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vw_amihud; /* deleted view=vw_amihud*/
	set inter;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The code run smoothly, but now, &lt;STRONG&gt;vw.amihud&lt;/STRONG&gt; is under view output even I no longer set it by view option&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1615593839976.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55901i439C541A84C68B3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="My97_0-1615593839976.png" alt="My97_0-1615593839976.png" /&gt;&lt;/span&gt;&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;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 00:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/View-libname-memname-was-terminated-due-to-errors/m-p/726005#M225584</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-13T00:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: View libname.memname was terminated due to errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/View-libname-memname-was-terminated-due-to-errors/m-p/726136#M225637</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;SAS data step views are compiled executables and cannot work in a different operating system.&lt;/P&gt;&lt;P&gt;This is the reason for this statement. "NOTE: A stored DATA STEP view cannot run under a different operating system".&lt;/P&gt;&lt;P&gt;If it is desired to run the view on a different operating system, it is better to copy the source code and recreate the view.&lt;BR /&gt;Have a look here&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=engsas7bdat&amp;amp;docsetTarget=n1h8ok8rj6uzqkn18tpnp1lb4lp9.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=engsas7bdat&amp;amp;docsetTarget=n1h8ok8rj6uzqkn18tpnp1lb4lp9.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 17:14:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/View-libname-memname-was-terminated-due-to-errors/m-p/726136#M225637</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-14T17:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: View libname.memname was terminated due to errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/View-libname-memname-was-terminated-due-to-errors/m-p/726218#M225659</link>
      <description>&lt;P&gt;If you can reproduce the behaviour predictably, contact tech support. I've never seen that message.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 08:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/View-libname-memname-was-terminated-due-to-errors/m-p/726218#M225659</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-15T08:23:23Z</dc:date>
    </item>
  </channel>
</rss>

