<?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: SAS Stored process vs Block execution in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Stored-process-vs-Block-execution/m-p/565957#M11281</link>
    <description>&lt;P&gt;Thank you so much Kurt for your fast response, your answer perfectly explains why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS and I am trying to execute the stored process within .NET, my Stored process is as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*ProcessBody;&lt;BR /&gt;%STPBEGIN;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE BP AS&lt;BR /&gt;SELECT * from SASHELP.BASEBALL (OBS=2);&lt;BR /&gt;QUIT;&lt;BR /&gt;%STPEND;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can change it to make the table saved into permanent library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance and all the best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lyudmil&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 18:09:56 GMT</pubDate>
    <dc:creator>lyudmilpetrov</dc:creator>
    <dc:date>2019-06-13T18:09:56Z</dc:date>
    <item>
      <title>SAS Stored process vs Block execution</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Stored-process-vs-Block-execution/m-p/565855#M11261</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple stored process, as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*ProcessBody;&lt;BR /&gt;%STPBEGIN;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE TEST AS&lt;BR /&gt;SELECT * from SASHELP.CARS (OBS=2);&lt;BR /&gt;select * from TEST;&lt;BR /&gt;QUIT;&lt;BR /&gt;%STPEND;&lt;/P&gt;&lt;P&gt;when executed it says that table is created and table is presented from the select.&lt;/P&gt;&lt;P&gt;But it is not visible in the folder WORK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same code without&amp;nbsp;%STPBEGIN; and&amp;nbsp;%STPEND;, which is only code block, when executed, executes the same way but this time produces the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is that behavior ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lyudmil Petrov&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Stored-process-vs-Block-execution/m-p/565855#M11261</guid>
      <dc:creator>lyudmilpetrov</dc:creator>
      <dc:date>2019-06-13T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored process vs Block execution</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Stored-process-vs-Block-execution/m-p/565947#M11280</link>
      <description>&lt;P&gt;WORK is individual for each SAS session, and in the case of stored processes, cleared after each STP execution, so you cannot expect to see it in any other WORK library. Create the dataset in a permanent library instead.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Stored-process-vs-Block-execution/m-p/565947#M11280</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-13T17:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored process vs Block execution</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Stored-process-vs-Block-execution/m-p/565957#M11281</link>
      <description>&lt;P&gt;Thank you so much Kurt for your fast response, your answer perfectly explains why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS and I am trying to execute the stored process within .NET, my Stored process is as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*ProcessBody;&lt;BR /&gt;%STPBEGIN;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE BP AS&lt;BR /&gt;SELECT * from SASHELP.BASEBALL (OBS=2);&lt;BR /&gt;QUIT;&lt;BR /&gt;%STPEND;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can change it to make the table saved into permanent library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance and all the best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lyudmil&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 18:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Stored-process-vs-Block-execution/m-p/565957#M11281</guid>
      <dc:creator>lyudmilpetrov</dc:creator>
      <dc:date>2019-06-13T18:09:56Z</dc:date>
    </item>
  </channel>
</rss>

