<?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: Variable for the description of the DIS job in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Variable-for-the-description-of-the-DIS-job/m-p/588615#M17987</link>
    <description>Maybe you need to use DATA Step Functions for Reading and Writing Metadata. Doc: &lt;A href="https://documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p0o5rdel8tgzgsn1iqhdwybgui7k.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p0o5rdel8tgzgsn1iqhdwybgui7k.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;</description>
    <pubDate>Fri, 13 Sep 2019 17:56:03 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2019-09-13T17:56:03Z</dc:date>
    <item>
      <title>Variable for the description of the DIS job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Variable-for-the-description-of-the-DIS-job/m-p/588463#M17986</link>
      <description>&lt;P&gt;I want to create one variable called DESCRIPTION which should have the value as description of the Job. Assume one Job is calculating weight of the student and it is mentioned in the description of the Job, then I need the value as "weight of the student" in a variable DESCRIPTION.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already checked the generated code of the DIS Jobs and no Job holds the value of the description of the Job in any macro variable neither it don't seem to be stored any where.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appriciate if someone of you shed some light on this exercise.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 10:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Variable-for-the-description-of-the-DIS-job/m-p/588463#M17986</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-13T10:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for the description of the DIS job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Variable-for-the-description-of-the-DIS-job/m-p/588615#M17987</link>
      <description>Maybe you need to use DATA Step Functions for Reading and Writing Metadata. Doc: &lt;A href="https://documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p0o5rdel8tgzgsn1iqhdwybgui7k.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p0o5rdel8tgzgsn1iqhdwybgui7k.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Fri, 13 Sep 2019 17:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Variable-for-the-description-of-the-DIS-job/m-p/588615#M17987</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-09-13T17:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for the description of the DIS job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Variable-for-the-description-of-the-DIS-job/m-p/588626#M17988</link>
      <description>Should I use Metadata_Appprop data step function?&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Sep 2019 18:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Variable-for-the-description-of-the-DIS-job/m-p/588626#M17988</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-13T18:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for the description of the DIS job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Variable-for-the-description-of-the-DIS-job/m-p/588707#M17991</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;Full points that you first inspected the DIS generated code to see what's available. You might have seen that&amp;nbsp;DIS creates macro variable &amp;amp;JobID. Using this macro variable the following should work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  length Description $256;
  rc=metadata_getattr("OMSOBJ:Job?@Id = '&amp;amp;jobID'","Desc",Description);
  call symputx('Description', Description);
  put rc=;
  put Description=;
  stop;
run;

%put &amp;amp;=Description;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Above based on docu sample code from here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p1kjy5liyi86w8n1vfopazyeb70u.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p1kjy5liyi86w8n1vfopazyeb70u.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And to figure out the attribute names for a metadata object refer to documentation here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/omamodref/67417/HTML/default/viewer.htm#job.htm" target="_blank" rel="noopener"&gt;https://support.sas.com/documentation/cdl/en/omamodref/67417/HTML/default/viewer.htm#job.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Querying SAS Metadata is often not that simple. Luckily here we just had to get the attribute of an object where we knew the Id already.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 01:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Variable-for-the-description-of-the-DIS-job/m-p/588707#M17991</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-15T01:09:20Z</dc:date>
    </item>
  </channel>
</rss>

