<?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: Passing Job name as a Parameter to the SAS DI Job in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124399#M1593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Kandasamy&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can pass parameters from the scheduler to the DI job using the SYSPARM command line option. You get the value of the SYSPARM into a SAS macro variable called also SYSPARM. You can then use it as you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Not sure if this is relevant or not but you can use the Data Integration loop transformation to read the values of a table (audit table) and run another DI job each time passing it the current row value from the table as a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 15:03:10 GMT</pubDate>
    <dc:creator>EyalGonen</dc:creator>
    <dc:date>2012-05-30T15:03:10Z</dc:date>
    <item>
      <title>Passing Job name as a Parameter to the SAS DI Job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124392#M1586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know how to pass the job name as a parameter to the SAS DI job.&lt;/P&gt;&lt;P&gt;Please guide me on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kandasamy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 23:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124392#M1586</guid>
      <dc:creator>kandasamy</dc:creator>
      <dc:date>2012-05-22T23:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Job name as a Parameter to the SAS DI Job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124393#M1587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version of DI Studio are you using? If I recall there's a macro variable named etls_jobname if I got it right. Try to check the generated code of your DI job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Milton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 05:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124393#M1587</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2012-05-23T05:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Job name as a Parameter to the SAS DI Job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124394#M1588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link to create parameter jobs in SAS DI.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etlug/60948/HTML/default/viewer.htm#p1cqcd3acjwls2n0z9lmzv2dvo5w.htm" title="http://support.sas.com/documentation/cdl/en/etlug/60948/HTML/default/viewer.htm#p1cqcd3acjwls2n0z9lmzv2dvo5w.htm"&gt;http://support.sas.com/documentation/cdl/en/etlug/60948/HTML/default/viewer.htm#p1cqcd3acjwls2n0z9lmzv2dvo5w.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and check the global macro variable ...Hope it helps..&lt;/P&gt;&lt;P&gt;GLOBAL JOBID&amp;nbsp; A5YZWODR.BT000671 &lt;/P&gt;&lt;P&gt;GLOBAL IOMSERVER&amp;nbsp; SASApp &lt;/P&gt;&lt;P&gt;GLOBAL _ARMAPNM "SAS Data Integration Studio"&lt;/P&gt;&lt;P&gt;GLOBAL ETLS_STARTTIME 23MAY12:16:36:23&lt;/P&gt;&lt;P&gt;GLOBAL ETLS_JOBNAME ParameterJob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 11:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124394#M1588</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-05-23T11:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Job name as a Parameter to the SAS DI Job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124395#M1589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your inputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone through the link and it is not fulfil my requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is, i need to build an user defined audit table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My jobs are running parallelly, all the jobs are assign to the one system audit table and records are getting inserted into it. I am having user defined audit where i need to pull the data from the system audit table and insert to the user defined audit table, so that i need to pass the job name and pick the records from the system audit table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 16:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124395#M1589</guid>
      <dc:creator>kandasamy</dc:creator>
      <dc:date>2012-05-23T16:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Job name as a Parameter to the SAS DI Job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124396#M1590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kandasamy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just verified the previous replies you got and in the generated SAS code you have the "etls_jobName" macro variable which contains the current job name. So, you do not need to define a parameter for this as it is auto-generated for you in the code.&amp;nbsp; You can use this macro variable anywhere you like - including adding it to an audit table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 07:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124396#M1590</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2012-05-25T07:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Job name as a Parameter to the SAS DI Job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124397#M1591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;we need to pass the parameter from outside to SAS DI job&lt;/P&gt;&lt;P&gt;Requirement Scenario:&lt;/P&gt;&lt;P&gt;1) we have table (say AUDIT_TABLE) which has JOB_NAME column and other attributes (around 10 job_names records in one dataset)&lt;/P&gt;&lt;P&gt;2) our requirement is to fetch all the attribute details from AUDIT_TABLE for a particular job_name&lt;/P&gt;&lt;P&gt;3) need to design a job which will fetch all the attributes from the AUDIT_TABLE for a single job_name and load to the other attribute details to some other table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clarification/Suggestion we required on below points&lt;/P&gt;&lt;P&gt;1) how to pass a parameter to sas job (passing parameter from one job to other job)&lt;/P&gt;&lt;P&gt;2) can it be achivable through any schedular program, if so please help us&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kandasamy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 18:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124397#M1591</guid>
      <dc:creator>kandasamy</dc:creator>
      <dc:date>2012-05-29T18:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Job name as a Parameter to the SAS DI Job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124398#M1592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kandasamy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I get the flow of your scenario correctly that for each record in your audit table contains a job name and some attributes and then the job will be executed with the parameters set for that record?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm thinking is that you have a main job where which loops and reads each record in the audit table and then use %include to reference the sas file of that job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if I didn't understand correctly what you are trying to attain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 01:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124398#M1592</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2012-05-30T01:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Job name as a Parameter to the SAS DI Job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124399#M1593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Kandasamy&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can pass parameters from the scheduler to the DI job using the SYSPARM command line option. You get the value of the SYSPARM into a SAS macro variable called also SYSPARM. You can then use it as you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Not sure if this is relevant or not but you can use the Data Integration loop transformation to read the values of a table (audit table) and run another DI job each time passing it the current row value from the table as a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 15:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Passing-Job-name-as-a-Parameter-to-the-SAS-DI-Job/m-p/124399#M1593</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2012-05-30T15:03:10Z</dc:date>
    </item>
  </channel>
</rss>

