<?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 Run SAS script from Batch raise an error - SAS 9.4 in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Run-SAS-script-from-Batch-raise-an-error-SAS-9-4/m-p/850154#M25662</link>
    <description>&lt;P&gt;I am using the sasbatch.sh in order to run .sas scripts from command line. In our company we have different SAS application servers (development, production, etc) and one source of information is a Hadoop server. &lt;STRONG&gt;Communication was working fine until a few days&lt;/STRONG&gt;, but now I've got some errors in the SAS log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we run by command line we got the following error:&lt;/P&gt;&lt;LI-CODE lang="shell"&gt;sasbatch.sh -log /log/jmd_prueba_ -batch -noterminal -logparm "rollover=session" -sysin /script/script.sas&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img001.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78645i9E1A93EC2ACC4AF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="img001.PNG" alt="img001.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS step that fails is the following (communication to the hadoop server):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;options set=SAS_HADOOP_RESTFUL 0;
proc hadoop verbose;
	hdfs copytolocal="&amp;amp;path_hdfs" out="&amp;amp;path_tmp" OVERWRITE;
run;
options set=SAS_HADOOP_RESTFUL 0;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if it is worth to mention that I changed my password a few days ago and the step don't fail if I run it from SAS Guide, SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope if anyone can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 21:33:59 GMT</pubDate>
    <dc:creator>a20121248</dc:creator>
    <dc:date>2022-12-16T21:33:59Z</dc:date>
    <item>
      <title>Run SAS script from Batch raise an error - SAS 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Run-SAS-script-from-Batch-raise-an-error-SAS-9-4/m-p/850154#M25662</link>
      <description>&lt;P&gt;I am using the sasbatch.sh in order to run .sas scripts from command line. In our company we have different SAS application servers (development, production, etc) and one source of information is a Hadoop server. &lt;STRONG&gt;Communication was working fine until a few days&lt;/STRONG&gt;, but now I've got some errors in the SAS log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we run by command line we got the following error:&lt;/P&gt;&lt;LI-CODE lang="shell"&gt;sasbatch.sh -log /log/jmd_prueba_ -batch -noterminal -logparm "rollover=session" -sysin /script/script.sas&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img001.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78645i9E1A93EC2ACC4AF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="img001.PNG" alt="img001.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS step that fails is the following (communication to the hadoop server):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;options set=SAS_HADOOP_RESTFUL 0;
proc hadoop verbose;
	hdfs copytolocal="&amp;amp;path_hdfs" out="&amp;amp;path_tmp" OVERWRITE;
run;
options set=SAS_HADOOP_RESTFUL 0;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if it is worth to mention that I changed my password a few days ago and the step don't fail if I run it from SAS Guide, SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope if anyone can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 21:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Run-SAS-script-from-Batch-raise-an-error-SAS-9-4/m-p/850154#M25662</guid>
      <dc:creator>a20121248</dc:creator>
      <dc:date>2022-12-16T21:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Run SAS script from Batch raise an error - SAS 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Run-SAS-script-from-Batch-raise-an-error-SAS-9-4/m-p/850156#M25663</link>
      <description>Do you have a valid kerberos ticket (run klist to check this). If your code is using a kerberos keytab that will need to be updated if you changed your password.</description>
      <pubDate>Fri, 16 Dec 2022 21:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Run-SAS-script-from-Batch-raise-an-error-SAS-9-4/m-p/850156#M25663</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-12-16T21:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Run SAS script from Batch raise an error - SAS 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Run-SAS-script-from-Batch-raise-an-error-SAS-9-4/m-p/850158#M25664</link>
      <description>&lt;P&gt;Should I run klist in the sas server, right? If so, I've got this output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a20121248_0-1671227392386.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78646i34487022E94E7789/image-size/medium?v=v2&amp;amp;px=400" role="button" title="a20121248_0-1671227392386.png" alt="a20121248_0-1671227392386.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IT just made me to change my password recently, do you know how can I update the kerberos keytab?&lt;/P&gt;&lt;P&gt;Do you know why SAS Guide doesn't have this problem? It only happens when I run from command line.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 21:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Run-SAS-script-from-Batch-raise-an-error-SAS-9-4/m-p/850158#M25664</guid>
      <dc:creator>a20121248</dc:creator>
      <dc:date>2022-12-16T21:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Run SAS script from Batch raise an error - SAS 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Run-SAS-script-from-Batch-raise-an-error-SAS-9-4/m-p/850162#M25665</link>
      <description>&lt;P&gt;Thank you, I just googled the command (kinit) and it is OKAY.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a20121248_0-1671228376414.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78648i1FB49582A610248D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="a20121248_0-1671228376414.png" alt="a20121248_0-1671228376414.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You save my day because I was facing the same issue with SAS Data Integration.&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 22:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Run-SAS-script-from-Batch-raise-an-error-SAS-9-4/m-p/850162#M25665</guid>
      <dc:creator>a20121248</dc:creator>
      <dc:date>2022-12-16T22:06:33Z</dc:date>
    </item>
  </channel>
</rss>

