<?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: Viya job does not execute new code in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/857317#M25907</link>
    <description>but if the job is included in Jobs-flows must the job included in it also be updated?</description>
    <pubDate>Mon, 06 Feb 2023 08:23:53 GMT</pubDate>
    <dc:creator>nikogallo</dc:creator>
    <dc:date>2023-02-06T08:23:53Z</dc:date>
    <item>
      <title>Viya job does not execute new code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814299#M24431</link>
      <description>&lt;P&gt;I have a SAS program, Save_Audit_History, I created several months ago in Viya SAS Studio (using the Develop SAS Code option in the Viya application menu).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I scheduled the code to execute on a schedule in the Jobs application in Environment&amp;nbsp; Manager (Manage Environment in the Viya menu).&amp;nbsp; I scheduled it by selecting the New option on the Scheduling tab and then selecting the job by browsing to it in the New Job window.&lt;/P&gt;
&lt;P&gt;The job recently started getting errors due to CAS data limit.&amp;nbsp; I added the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;options casdatalimit=500M;&lt;/P&gt;
&lt;P&gt;to increase the limit.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the scheduled job runs, it still fails.&amp;nbsp; When I look at the log for the job, it does not contain my new code.&lt;/P&gt;
&lt;P&gt;Do I need to create a new job every time I change the code for a program?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 14:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814299#M24431</guid>
      <dc:creator>jblack38</dc:creator>
      <dc:date>2022-05-19T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Viya job does not execute new code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814308#M24432</link>
      <description>&lt;P&gt;Try wrapping the proc sql command in its casl sibling proc fedsq.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cas;
source MPG_toyota;
'your sql command'
endsource;
fedSQL.execDirect / query=MPG_toyota;
quit;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;start from my example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cas;
source MPG_toyota;
		create table public.sum22{options replace=true} as 
			select a.sales_res as feb_sales_res, b.sales_res, case when round(a.sales_res-b.sales_res,3)=0 then 1 else 0 end as flag 
               from RISKNOBA.REMA_FEB22_FMT_OUT a inner join RISKNOBA.REMA_DEC21_FMT_OUT b 
			on a.bastidor=b.bastidor  ;
endsource;
fedSQL.execDirect / query=MPG_toyota;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 15:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814308#M24432</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-05-19T15:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Viya job does not execute new code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814310#M24433</link>
      <description>The problem is that the Viya JOB does not see any changes I make to the code.  I even added a new comment line and it did not show up in the job log.&lt;BR /&gt;So making these changes to the code will not be seen by the job.</description>
      <pubDate>Thu, 19 May 2022 15:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814310#M24433</guid>
      <dc:creator>jblack38</dc:creator>
      <dc:date>2022-05-19T15:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Viya job does not execute new code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814321#M24436</link>
      <description>Yes, when you schedule a job the code gets written into the job object rather than being linked to the program you are saving, so you would need to create a new job. You might consider creating a program that does an %include against your program in the files service using the filename statement's filesrvc access method, then when you edit the code it will run the current version.&lt;BR /&gt;&lt;BR /&gt;FILENAME Statement: FILESRVC Access Method&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0qapul7pyz9hmn0zfoefj0c278a.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0qapul7pyz9hmn0zfoefj0c278a.htm&lt;/A&gt;</description>
      <pubDate>Thu, 19 May 2022 16:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814321#M24436</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-05-19T16:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Viya job does not execute new code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814332#M24438</link>
      <description>Thanks Greg!&lt;BR /&gt;That is what I suspected.&lt;BR /&gt;Good suggestion on using an %include.</description>
      <pubDate>Thu, 19 May 2022 16:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/814332#M24438</guid>
      <dc:creator>jblack38</dc:creator>
      <dc:date>2022-05-19T16:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Viya job does not execute new code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/857316#M25906</link>
      <description>&lt;P&gt;the best practice to optimize the work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/857316#M25906</guid>
      <dc:creator>nikogallo</dc:creator>
      <dc:date>2023-02-06T08:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Viya job does not execute new code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/857317#M25907</link>
      <description>but if the job is included in Jobs-flows must the job included in it also be updated?</description>
      <pubDate>Mon, 06 Feb 2023 08:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/857317#M25907</guid>
      <dc:creator>nikogallo</dc:creator>
      <dc:date>2023-02-06T08:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Viya job does not execute new code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/857379#M25915</link>
      <description>When you save the job the code is stored separately from when you created the code, so any changes would require creating the job again.</description>
      <pubDate>Mon, 06 Feb 2023 14:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-job-does-not-execute-new-code/m-p/857379#M25915</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-02-06T14:56:58Z</dc:date>
    </item>
  </channel>
</rss>

