<?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: Modifying Jobs and Job flows in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Modifying-Jobs-and-Job-flows/m-p/910111#M2179</link>
    <description>&lt;P&gt;In the current release, the program is bundled with your job definition. I think I heard/read somehwere that it will be possible in future releases to seperate the program from the job. I don't think you have to delete the jobm but a redeplyment is necessary.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/webeditorcdc/v_038/webeditorjobsdg/n0t3wlpws3j796n1wuzm5meqnldr.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/webeditorcdc/v_038/webeditorjobsdg/n0t3wlpws3j796n1wuzm5meqnldr.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 17:31:22 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2024-01-02T17:31:22Z</dc:date>
    <item>
      <title>Modifying Jobs and Job flows</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Modifying-Jobs-and-Job-flows/m-p/910069#M2175</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been exploring SAS Viya especially the features related to jobs and job flows. I had two inquiries regarding them:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When I create a job using a SAS program. If I do any modifications to the SAS program, then I have to delete the job and create new one using the modified SAS program else the job executed will refer to the SAS program before it was modified. Is there any way to make job read the most recent SAS program automatically?&lt;/LI&gt;&lt;LI&gt;The work session ends after the jobs is successfully completed so the next job in the same flow cannot read the data from the previous job. So how can I make all the jobs read from the same work session?&lt;/LI&gt;&lt;LI&gt;I have to reference the same libname in each job or else it gives me an error. Is there a way to have libname defined in one job and then all the jobs in the same job flow would have the same libname assigned to them without writing that command again?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I appreciate your support!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 13:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Modifying-Jobs-and-Job-flows/m-p/910069#M2175</guid>
      <dc:creator>Omar_K</dc:creator>
      <dc:date>2024-01-02T13:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Jobs and Job flows</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Modifying-Jobs-and-Job-flows/m-p/910110#M2178</link>
      <description>1. Correct, when you create a job definition the code is written there, so any later modifications to the program in Studio would not carry over to the job. One way around this would be to use the filesrvc access method to %include the program you are making changes to.&lt;BR /&gt;&lt;BR /&gt;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;&lt;BR /&gt;&lt;BR /&gt;2. The WORK library is specific to a SAS session, so each job would have it's own WORK. You would need to use a library other than WORK if you want it to persist between sessions. You could create a job to create such a library at the beginning of your flow execution and another to delete any tables in it at the end.&lt;BR /&gt;&lt;BR /&gt;3. Depending on the Viya release you could do this in your compute context definition or an autoexec if you want it to apply to all sessions. If you want it just for this flow and it's just one libname statement, you would just add it to the code for each job.</description>
      <pubDate>Tue, 02 Jan 2024 17:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Modifying-Jobs-and-Job-flows/m-p/910110#M2178</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2024-01-02T17:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Jobs and Job flows</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Modifying-Jobs-and-Job-flows/m-p/910111#M2179</link>
      <description>&lt;P&gt;In the current release, the program is bundled with your job definition. I think I heard/read somehwere that it will be possible in future releases to seperate the program from the job. I don't think you have to delete the jobm but a redeplyment is necessary.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/webeditorcdc/v_038/webeditorjobsdg/n0t3wlpws3j796n1wuzm5meqnldr.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/webeditorcdc/v_038/webeditorjobsdg/n0t3wlpws3j796n1wuzm5meqnldr.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 17:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Modifying-Jobs-and-Job-flows/m-p/910111#M2179</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-01-02T17:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Jobs and Job flows</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Modifying-Jobs-and-Job-flows/m-p/910114#M2180</link>
      <description>&lt;P&gt;Just saying +1 to the idea of using %include in your job to run the program.&amp;nbsp; I don't use Viya (yet), but for both DI studio jobs (which are deployed and scheduled) and for stored processes, this is the approach I use.&amp;nbsp; The job itself is just a shell, with an %include statement.&amp;nbsp; The actually program is stored in a normal .sas file.&amp;nbsp; So you can edit your program with whatever tool you like, use version control, etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 18:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Modifying-Jobs-and-Job-flows/m-p/910114#M2180</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-01-02T18:06:04Z</dc:date>
    </item>
  </channel>
</rss>

