<?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 Batch job's log name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Batch-job-s-log-name/m-p/620382#M182287</link>
    <description>&lt;P&gt;I don't get it. I have jobs running in batch in development and test which do what I expect. On rare occasions, the job will detect an error and throw the information about the problem to the same name as the job's log file, with the suffix changed from&amp;nbsp;&lt;EM&gt; .log&lt;/EM&gt; to&amp;nbsp;&lt;EM&gt;.lst&lt;/EM&gt;. For example&amp;nbsp; &lt;EM&gt;DM_Daily_Batch7_table_name_P2H1_2020.01.20_03.05.50.log&lt;/EM&gt; will be paired with&amp;nbsp;&lt;EM style="color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: italic; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;DM_Daily_Batch7_table_name_P2H1_2020.01.20_03.05.50.lst&lt;/EM&gt;. It's not flash, but it works well and everyone is happy with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when we run it in production, the log name, from the option &lt;EM&gt;log&lt;/EM&gt; , is consistently the above truncated immediately before the timestamp:&amp;nbsp;&lt;EM style="color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: italic; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;DM_Daily_Batch7_table_name_P2H1_&lt;/EM&gt;&lt;EM&gt;.&amp;nbsp;&lt;/EM&gt;It doesn't matter how long the name of the log file is - it's always at this point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What sort of weird environmental setting would cause this? and how do we go about changing it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 22:43:17 GMT</pubDate>
    <dc:creator>LaurieF</dc:creator>
    <dc:date>2020-01-27T22:43:17Z</dc:date>
    <item>
      <title>Batch job's log name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-job-s-log-name/m-p/620382#M182287</link>
      <description>&lt;P&gt;I don't get it. I have jobs running in batch in development and test which do what I expect. On rare occasions, the job will detect an error and throw the information about the problem to the same name as the job's log file, with the suffix changed from&amp;nbsp;&lt;EM&gt; .log&lt;/EM&gt; to&amp;nbsp;&lt;EM&gt;.lst&lt;/EM&gt;. For example&amp;nbsp; &lt;EM&gt;DM_Daily_Batch7_table_name_P2H1_2020.01.20_03.05.50.log&lt;/EM&gt; will be paired with&amp;nbsp;&lt;EM style="color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: italic; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;DM_Daily_Batch7_table_name_P2H1_2020.01.20_03.05.50.lst&lt;/EM&gt;. It's not flash, but it works well and everyone is happy with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when we run it in production, the log name, from the option &lt;EM&gt;log&lt;/EM&gt; , is consistently the above truncated immediately before the timestamp:&amp;nbsp;&lt;EM style="color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: italic; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;DM_Daily_Batch7_table_name_P2H1_&lt;/EM&gt;&lt;EM&gt;.&amp;nbsp;&lt;/EM&gt;It doesn't matter how long the name of the log file is - it's always at this point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What sort of weird environmental setting would cause this? and how do we go about changing it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 22:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-job-s-log-name/m-p/620382#M182287</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2020-01-27T22:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job's log name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-job-s-log-name/m-p/620395#M182296</link>
      <description>&lt;P&gt;Is there a shell script that executes your sas code in the batch mode ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically the sas programs as called in this fashion within the Shell Scripts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sas  ${SOURCE_DIR}/${SASPGM}.sas -log ${LOG_DIR}/${LOG_FILE} -print ${LOG_DIR}/${LST_FILE}&lt;/PRE&gt;
&lt;P&gt;The parameters in this script&amp;nbsp; are : ${SASPGM}&amp;nbsp; ${LOG_DIR}&amp;nbsp; ${LOG_FILE}&amp;nbsp; ${LST_FILE}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps there is a timestamp parameter which is not resolving as expected in your environment,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 23:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-job-s-log-name/m-p/620395#M182296</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2020-01-27T23:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job's log name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-job-s-log-name/m-p/620404#M182298</link>
      <description>&lt;P&gt;Ah - that's not the actual answer, but it's the hint I needed. The job being deployed in production (this is from DI) would appear to be using a different set of parameters to generate the sasbatch.sh call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Laurie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 00:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-job-s-log-name/m-p/620404#M182298</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2020-01-28T00:06:50Z</dc:date>
    </item>
  </channel>
</rss>

