<?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 How do I promote DI Studio Job (user written code) from DEV to PROD in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356453#M8517</link>
    <description>&lt;P&gt;I have DI Studio Jobs with user written code that I need to promote from DEV to PROD.&amp;nbsp; Obviously, I can export/import as SAS Package...and that's what I have been doing.&amp;nbsp; However, once I complete the import, I then have to open the job, go thru the code, and change the lines of code that reference the server by name.&amp;nbsp; Is there a better way to do this...maybe something a bit more automated?&amp;nbsp; I am fairly new to SAS, so I may be missing the obvious. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 15:54:16 GMT</pubDate>
    <dc:creator>rgreen33</dc:creator>
    <dc:date>2017-05-05T15:54:16Z</dc:date>
    <item>
      <title>How do I promote DI Studio Job (user written code) from DEV to PROD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356453#M8517</link>
      <description>&lt;P&gt;I have DI Studio Jobs with user written code that I need to promote from DEV to PROD.&amp;nbsp; Obviously, I can export/import as SAS Package...and that's what I have been doing.&amp;nbsp; However, once I complete the import, I then have to open the job, go thru the code, and change the lines of code that reference the server by name.&amp;nbsp; Is there a better way to do this...maybe something a bit more automated?&amp;nbsp; I am fairly new to SAS, so I may be missing the obvious. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 15:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356453#M8517</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-05-05T15:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I promote DI Studio Job (user written code) from DEV to PROD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356458#M8518</link>
      <description>Yes, avoid user written code. Since I don't know what your code is doing, I can't at this moment tell you how.</description>
      <pubDate>Fri, 05 May 2017 15:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356458#M8518</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-05T15:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I promote DI Studio Job (user written code) from DEV to PROD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356460#M8519</link>
      <description>&lt;P&gt;The main thing that user written code is being used for is pushing data to LASR from Hadoop.&amp;nbsp; My data in Hadoop is stored as SASHDAT, while in LASR, it is stored as SASIOLA.&amp;nbsp; I have not found any other way to do this...other than with user written code.&amp;nbsp; I have even tried using Visual DataBuilder to create the job, but it simply creates a job that uses user written code.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 16:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356460#M8519</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-05-05T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I promote DI Studio Job (user written code) from DEV to PROD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356560#M8526</link>
      <description>When the data is already in LASR format, I think loading it to memory is a DBA operation rather than ETL. So i think it's OK to use VA features lika auto load or PROC IMSTAT (which wouldn't be part of any DI Studio job, nor be subject for promotion).</description>
      <pubDate>Fri, 05 May 2017 21:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356560#M8526</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-05T21:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I promote DI Studio Job (user written code) from DEV to PROD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356890#M8534</link>
      <description>&lt;P&gt;I'm not sure that I am following what you are saying.&amp;nbsp; Essentially, I have the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source (Oracle, SQL, etc.)&amp;nbsp; --&amp;gt;&amp;nbsp; HDFS&amp;nbsp; --&amp;gt;&amp;nbsp; LASR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have scheduled jobs setup as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source (Oracle, SQL, etc.)&amp;nbsp; --&amp;gt;&amp;nbsp; HDFS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HDFS&amp;nbsp; --&amp;gt;&amp;nbsp; LASR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As previously mentioned, the real issue is with the HDFS --&amp;gt; LASR job.&amp;nbsp; My data in HDFS is in SASHDAT format, and I need to push it from HDGS to LASR, which will be in SASIOLA format.&amp;nbsp; The only way that I have found to do this is vai user written code using &lt;EM&gt;proc lasr add&lt;/EM&gt;.&amp;nbsp; And, with this being the case, this causes an issue when promoting from DEV to PROD, as I have to manually change the code, which can be tedious when I have lots to move.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 15:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/356890#M8534</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-05-08T15:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I promote DI Studio Job (user written code) from DEV to PROD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/357129#M8546</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So basically you just want your server-name as a variable?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;You can use&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysget&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(computername)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Try this example:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; path=\\&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysget&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(computername)\sasfolders\data;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &amp;amp;path.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I hope this was what you needed...&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 11:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/357129#M8546</guid>
      <dc:creator>CHandberg</dc:creator>
      <dc:date>2017-05-09T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I promote DI Studio Job (user written code) from DEV to PROD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/357159#M8548</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2398"&gt;@CHandberg&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANK YOU!!!&amp;nbsp; That is exactly what I was looking for...just a minor tweak since I am in a Linux environment.&amp;nbsp; I added the following line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let env_HOSTNAME = %sysget(HOSTNAME);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I referenced this variable in my LIBNAME statements (and other places as needed).&amp;nbsp; Now, this will allow me to move these jobs from one environment to another without having to make any changes (since my necessary folder structure is the same between my two environments).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 12:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-do-I-promote-DI-Studio-Job-user-written-code-from-DEV-to/m-p/357159#M8548</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-05-09T12:38:36Z</dc:date>
    </item>
  </channel>
</rss>

