<?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 to access gsub dataset containing grid job id in sas program submitted to sas grid using sasgsub in Developers</title>
    <link>https://communities.sas.com/t5/Developers/How-to-access-gsub-dataset-containing-grid-job-id-in-sas-program/m-p/595474#M541</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are submitting the job to the SAS grid using below utility.&lt;/P&gt;&lt;P&gt;${gsublocation}/sasgsub -gridconfig ${gsubconfiguration}/sasgsub.cfg -gridsubmitpgm ${SASPROGRAM}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the job(SASPROGRAM) starts running on the grid, is it possible to read the job id in SASPROGRAM.sas file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hanu&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 16:20:52 GMT</pubDate>
    <dc:creator>Hanu_007</dc:creator>
    <dc:date>2019-10-10T16:20:52Z</dc:date>
    <item>
      <title>How to access gsub dataset containing grid job id in sas program submitted to sas grid using sasgsub</title>
      <link>https://communities.sas.com/t5/Developers/How-to-access-gsub-dataset-containing-grid-job-id-in-sas-program/m-p/595474#M541</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are submitting the job to the SAS grid using below utility.&lt;/P&gt;&lt;P&gt;${gsublocation}/sasgsub -gridconfig ${gsubconfiguration}/sasgsub.cfg -gridsubmitpgm ${SASPROGRAM}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the job(SASPROGRAM) starts running on the grid, is it possible to read the job id in SASPROGRAM.sas file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hanu&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 16:20:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-access-gsub-dataset-containing-grid-job-id-in-sas-program/m-p/595474#M541</guid>
      <dc:creator>Hanu_007</dc:creator>
      <dc:date>2019-10-10T16:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to access gsub dataset containing grid job id in sas program submitted to sas grid using sas</title>
      <link>https://communities.sas.com/t5/Developers/How-to-access-gsub-dataset-containing-grid-job-id-in-sas-program/m-p/595479#M542</link>
      <description>&lt;P&gt;Did you check if GSUB creates an environment variable with the value of the currently running job id?&amp;nbsp; if it does use the SYSGET() function to get its value.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 16:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-access-gsub-dataset-containing-grid-job-id-in-sas-program/m-p/595479#M542</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-10T16:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to access gsub dataset containing grid job id in sas program submitted to sas grid using sas</title>
      <link>https://communities.sas.com/t5/Developers/How-to-access-gsub-dataset-containing-grid-job-id-in-sas-program/m-p/595555#M543</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried getting the value as follows, but it does not return any value.&lt;/P&gt;&lt;P&gt;%let jobid = %sysget(LSB_JOBID);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While i was searching through some blogs, following information was posted by some one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%GSUB writes the server JOBID to the WORK.GSUB datasetWORK.GSUBHOLDS A SINGLE JOBID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i tried to get the job as follows, got the error "ERROR: File WORK.GSUB.DATA does not exist"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%***get JobID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;set gsub;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;call symputx('jobid', put(jobid,8.));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let jobid=&amp;amp;jobid;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;are there any settings to be added/changed gridsubmitpgm to get access to WORK.GSUB.DATA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 20:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-access-gsub-dataset-containing-grid-job-id-in-sas-program/m-p/595555#M543</guid>
      <dc:creator>Hanu_007</dc:creator>
      <dc:date>2019-10-10T20:10:09Z</dc:date>
    </item>
  </channel>
</rss>

