<?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 SAS DI Job tracking details in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586679#M17938</link>
    <description>&lt;P&gt;I want to track the SAS job name which was executed, job start time, job end time, job folder location and job status after the execution of every job in SAS DI 4.9. Is there any table which automatically pulls this details for every job? If yes, I can pull those information via SAS code which I can place in 'post code' section&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Objective is to get these details from SAS and insert it into the SQL table.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2019 10:01:30 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2019-09-06T10:01:30Z</dc:date>
    <item>
      <title>SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586679#M17938</link>
      <description>&lt;P&gt;I want to track the SAS job name which was executed, job start time, job end time, job folder location and job status after the execution of every job in SAS DI 4.9. Is there any table which automatically pulls this details for every job? If yes, I can pull those information via SAS code which I can place in 'post code' section&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Objective is to get these details from SAS and insert it into the SQL table.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 10:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586679#M17938</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-06T10:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586793#M17942</link>
      <description>Have you seen the paper "Using SAS® Job Monitor to Analyze SAS® Data Integration&lt;BR /&gt;Studio Job Performance": &lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3586-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3586-2019.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 06 Sep 2019 15:13:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586793#M17942</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-09-06T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586801#M17943</link>
      <description>Could you please tell me how can I achieve the objective only via DI?&lt;BR /&gt;Because I do not have access to other softwares like Environment manager,&lt;BR /&gt;Management console....&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Sep 2019 16:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586801#M17943</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-06T16:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586922#M17949</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've seen people implementing such stuff via a custom transformation which they just add at the start and beginning of a DIS job - or if you don't need an entry if a job fails then just at the end. I've seen other people doing it via macro calls just added as pre- and post-code to the DIS job.&lt;/P&gt;
&lt;P&gt;Transformation Return Code Check generates SAS code which gives you a very good start to develop such custom code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BUT: DIS jobs get scheduled and run in batch. Many schedulers maintain a repository where such execution information gets stored. I believe you only should go for a DIS only solution if the scheduler doesn't maintain the information you need. LSF for example got this information and you can query it and extract the info into a SAS table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because the scheduling process is the parent, your SAS job can terminate in any way and you still maintain all the execution information. For example if an abort statement gets executed somewhere in the middle of your job (i.e. by a lookup transformation) then the node at the end of the DIS job writing status information gets never executed - but the scheduler will have the information that the job terminated with return code n.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2019 00:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586922#M17949</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-07T00:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586923#M17950</link>
      <description>I'm trying to implement the things in precode and postcode with the use of&lt;BR /&gt;macros. Again how and where can I store the values of macros without&lt;BR /&gt;creating datasets. Once I have this information in SAS, I have to feed the&lt;BR /&gt;values in SQL table.&lt;BR /&gt;&lt;BR /&gt;Also could you please tell me where can I find the transformation return&lt;BR /&gt;code in DI job?&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Sep 2019 00:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586923#M17950</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-07T00:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586928#M17951</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add DIS transformation &lt;EM&gt;Return Code Check&lt;/EM&gt; to any DIS job, create a new action and select "&lt;EM&gt;Send Entry to a Dataset&lt;/EM&gt;". The generated macro code under the code tab will give you a very good starting point to implement what you're after.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 188px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32289iE9839D121127CD60/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 589px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32290i1BBA8EAD917729C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or if what comes out of the box is enough for you then you can also use the DIS job level status handling. You get there just by right clicking on the job canvas.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 587px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32316i31BCEFA64866DDEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also select an action of custom - and custom could then be a SAS macro where you're doing whatever you need.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 592px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32317i6777FA205CB5C05F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2019 03:11:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/586928#M17951</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-08T03:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/587048#M17954</link>
      <description>I have to extract variable value from the DIS job folder and I would like&lt;BR /&gt;to know where the folder details are stored apart from the properties of&lt;BR /&gt;the job.&lt;BR /&gt;&lt;BR /&gt;If it not stored any where apart from properties, how can I extract value&lt;BR /&gt;from that?&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Sep 2019 05:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/587048#M17954</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-08T05:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/587058#M17955</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A) Your question is not clear&lt;/P&gt;
&lt;P&gt;B) You really need to start and look into and understand DIS generated code to get a better grasp what's available to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't see what you need in generated code then "play&amp;nbsp; around" changing options and then revisit the generated code and check if that gives you the required information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could of course always query SAS metadata for additional metadata information. Given that a deployed job (.sas file) doesn't need to be in sync with its originating metadata or that for moving a job (.sas file) the originating metadata doesn't necessarily need to be migrated as well, I wouldn't consider such metadata queries as good idea.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2019 08:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/587058#M17955</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-08T08:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/587059#M17956</link>
      <description>Assume my jobs are located in&lt;BR /&gt;/var/data/life/myjob&lt;BR /&gt;/var/data/nonlife/myjob&lt;BR /&gt;&lt;BR /&gt;Now I want to create one new variable called DOMAIN which should say which&lt;BR /&gt;domain DIS job belongs to. In my example life and nonlife is domain and so&lt;BR /&gt;the new variable DOMAIN should have those values.&lt;BR /&gt;&lt;BR /&gt;My question is how to find values for new variable  from the DIS job folder?&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Sep 2019 08:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/587059#M17956</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-08T08:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Job tracking details</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/587060#M17957</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And my answer is that you should ask a new question as a new question, that you should inspect the DIS generated code to determine if there is already a macro variable created that has this information in it. If not then you would need to query SAS Metadata for additional SAS Metadata information. DIS generates the metadata job ID into your code (&amp;amp;jobID) so you've got a very good starting point for doing such a metadata query (but as said: job metadata does not need to be in sync with the deployed .sas file so....).&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2019 09:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Job-tracking-details/m-p/587060#M17957</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-08T09:09:06Z</dc:date>
    </item>
  </channel>
</rss>

