<?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: Changing staored process code from command line is not reflected in the stored process. in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605784#M5950</link>
    <description>&lt;P&gt;Hard to say where the misunderstanding is happening without knowing more about your set up, but this is not the way it's supposed to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you look at the stored process in SAS Management Console, and go to the execution tab, where does it say the source code is stored?&amp;nbsp; Is it stored in metadata, or in a .sas file on the server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I typically use source code stored in metadata, but the source code is just:&lt;/P&gt;
&lt;P&gt;%include ".../myrprogram.sas"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that, I can edit myprogram.sas with any editor.&amp;nbsp; I don't have to update the metadata.&amp;nbsp; When the stored process runs, it runs the %include.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SMC shows the source code location as being a .sas file on the server, you should be able to edit that file with any editor and see the changes immediately when you run the stored process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only time you should have to update the stored process itself is if you are storing the source code in metadata, and need to update that code.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2019 15:26:43 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2019-11-20T15:26:43Z</dc:date>
    <item>
      <title>Changing staored process code from command line is not reflected in the stored process.</title>
      <link>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605768#M5949</link>
      <description>&lt;P&gt;Hello All&lt;BR /&gt;We are running SAS 9.4 M6 on UNiX (RHEL 6).&lt;BR /&gt;We have a stored process that is run frequently.&lt;BR /&gt;Sometimes when we make a change to the code using the vi editor and save,&lt;BR /&gt;it is not reflected in the stored process results.&lt;BR /&gt;We have to request&amp;nbsp; help from the SAS Admin.&lt;BR /&gt;SAS Admin exports and imports the stored process and it works.&lt;BR /&gt;Is this the default behavior or we doing some thing wrong?&lt;/P&gt;&lt;P&gt;Is it not possible to make the change take effect without exporting and importing the stored process from the Management Console?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605768#M5949</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-11-20T15:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing staored process code from command line is not reflected in the stored process.</title>
      <link>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605784#M5950</link>
      <description>&lt;P&gt;Hard to say where the misunderstanding is happening without knowing more about your set up, but this is not the way it's supposed to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you look at the stored process in SAS Management Console, and go to the execution tab, where does it say the source code is stored?&amp;nbsp; Is it stored in metadata, or in a .sas file on the server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I typically use source code stored in metadata, but the source code is just:&lt;/P&gt;
&lt;P&gt;%include ".../myrprogram.sas"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that, I can edit myprogram.sas with any editor.&amp;nbsp; I don't have to update the metadata.&amp;nbsp; When the stored process runs, it runs the %include.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SMC shows the source code location as being a .sas file on the server, you should be able to edit that file with any editor and see the changes immediately when you run the stored process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only time you should have to update the stored process itself is if you are storing the source code in metadata, and need to update that code.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605784#M5950</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-11-20T15:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changing staored process code from command line is not reflected in the stored process.</title>
      <link>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605786#M5951</link>
      <description>&lt;P&gt;I've seen this behaviour, also on unix,&amp;nbsp; using Type 2 (code stored in metadata) although normally it would reset itself after a few seconds or a minute.&amp;nbsp; I changed my deployment process to always remove and rebuild the STP instead, using the macros here:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/macropeople/macrocore/tree/master/meta" target="_blank" rel="noopener"&gt;https://github.com/macropeople/macrocore/tree/master/meta&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would have to assume there's a cache (in SAS, not filesystem) of the code being kept somewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605786#M5951</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2019-11-20T15:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changing staored process code from command line is not reflected in the stored process.</title>
      <link>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605788#M5952</link>
      <description>Thanks Quentin.&lt;BR /&gt;Simple all in one server.&lt;BR /&gt;Code stored on the disk and not metadata.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605788#M5952</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-11-20T15:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changing staored process code from command line is not reflected in the stored process.</title>
      <link>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605791#M5953</link>
      <description>Thanks AllanBowe.&lt;BR /&gt;I also suspect that there is a cache of the code kept some where.</description>
      <pubDate>Wed, 20 Nov 2019 15:35:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605791#M5953</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-11-20T15:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing staored process code from command line is not reflected in the stored process.</title>
      <link>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605941#M5954</link>
      <description>&lt;P&gt;Sounds scary to me.&amp;nbsp; If you can replicate it, I'd pass it on to tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose it's possible they'll say "stop editing the source code with vi", but that would be a disappointing response.&amp;nbsp; If we can't trust a SAS job to run the correct program, that sounds like a problem to me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 20:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/605941#M5954</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-11-20T20:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing staored process code from command line is not reflected in the stored process.</title>
      <link>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/610220#M5955</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Can you provide detailed information about the steps that you take to execute the stored process when the problem occurs?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2019 18:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/610220#M5955</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2019-12-07T18:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing staored process code from command line is not reflected in the stored process.</title>
      <link>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/612025#M5956</link>
      <description>Thanks.&lt;BR /&gt;Next time when we do it, will document and update.</description>
      <pubDate>Mon, 16 Dec 2019 14:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Changing-staored-process-code-from-command-line-is-not-reflected/m-p/612025#M5956</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-12-16T14:02:30Z</dc:date>
    </item>
  </channel>
</rss>

