<?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: When scheduling a SAS program as a job, changes to code do not save in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/When-scheduling-a-SAS-program-as-a-job-changes-to-code-do-not/m-p/882832#M1866</link>
    <description>When you create a job in Viya a copy of the code is written to the job definition, it is not linked back to the source program. If you make any changes to the code you will need to delete the old job and create a new one to schedule.</description>
    <pubDate>Wed, 28 Jun 2023 18:15:21 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2023-06-28T18:15:21Z</dc:date>
    <item>
      <title>When scheduling a SAS program as a job, changes to code do not save</title>
      <link>https://communities.sas.com/t5/SAS-Viya/When-scheduling-a-SAS-program-as-a-job-changes-to-code-do-not/m-p/882824#M1865</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wondering if this is a training issue for a bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whenever I schedule a SAS program to run, let's say everyday at 6 AM and it is stored in let's say /sas/usr/scheduled/daily.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I need to make a change to daily.sas, i have noticed that if I do no schedule a new job and delete the old job, the old job will run the older version of daily.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even when I am unable to see the old version, it is saved somewhere and being referenced by the job.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this in the way I am scheduling my jobs? Ideally, I'd like to schedule code to run and just update the sas program whenever needed without having to reschedule the job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind of like how I did with base SAS awhile back where I just had windows task scheduler run the sas program from a location on my drive and I could just update the sas code referenced by the batch file whenever needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your input!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 17:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/When-scheduling-a-SAS-program-as-a-job-changes-to-code-do-not/m-p/882824#M1865</guid>
      <dc:creator>illmatic</dc:creator>
      <dc:date>2023-06-28T17:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: When scheduling a SAS program as a job, changes to code do not save</title>
      <link>https://communities.sas.com/t5/SAS-Viya/When-scheduling-a-SAS-program-as-a-job-changes-to-code-do-not/m-p/882832#M1866</link>
      <description>When you create a job in Viya a copy of the code is written to the job definition, it is not linked back to the source program. If you make any changes to the code you will need to delete the old job and create a new one to schedule.</description>
      <pubDate>Wed, 28 Jun 2023 18:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/When-scheduling-a-SAS-program-as-a-job-changes-to-code-do-not/m-p/882832#M1866</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-06-28T18:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: When scheduling a SAS program as a job, changes to code do not save</title>
      <link>https://communities.sas.com/t5/SAS-Viya/When-scheduling-a-SAS-program-as-a-job-changes-to-code-do-not/m-p/882837#M1867</link>
      <description>&lt;P&gt;It sounds like the job you schedule needs to reference the file you want to update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If Viya support %INCLUDE (or the equivalent) then create a program that includes the actual file with the real code. And then schedule that little program instead.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 18:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/When-scheduling-a-SAS-program-as-a-job-changes-to-code-do-not/m-p/882837#M1867</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-28T18:31:56Z</dc:date>
    </item>
  </channel>
</rss>

