<?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 Process Throwing Error in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188757#M4401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually have been back on forth with SAS Tech support on this one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run a scheduled process and SAS keeps throwing errors one me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastest :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Unrecognized SAS option name MYDRIVE:\OUT.SAS.&lt;/P&gt;&lt;P&gt;ERROR: (SASXKRIN): KERNEL RESOURCE INITIALIZATION FAILED.&lt;/P&gt;&lt;P&gt;ERROR: Unable to initialize the SAS kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I currently have in line one of the bat file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\SASHome\SASFoundation\9.3\sas.exe" -SYSIN&amp;nbsp; MYDRIVE:\OUT.sas -log&amp;nbsp;&amp;nbsp; MYDRIVE:\OUT.log -print&amp;nbsp; MYDRIVE:\OUT.lst&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts on what could be throwing it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS tech support says it was because of the log and print was originally not included.&lt;/P&gt;&lt;P&gt;I originally had it just as SYSIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2014 20:06:47 GMT</pubDate>
    <dc:creator>Sasnoob</dc:creator>
    <dc:date>2014-07-21T20:06:47Z</dc:date>
    <item>
      <title>Batch Process Throwing Error</title>
      <link>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188757#M4401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually have been back on forth with SAS Tech support on this one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run a scheduled process and SAS keeps throwing errors one me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastest :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Unrecognized SAS option name MYDRIVE:\OUT.SAS.&lt;/P&gt;&lt;P&gt;ERROR: (SASXKRIN): KERNEL RESOURCE INITIALIZATION FAILED.&lt;/P&gt;&lt;P&gt;ERROR: Unable to initialize the SAS kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I currently have in line one of the bat file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\SASHome\SASFoundation\9.3\sas.exe" -SYSIN&amp;nbsp; MYDRIVE:\OUT.sas -log&amp;nbsp;&amp;nbsp; MYDRIVE:\OUT.log -print&amp;nbsp; MYDRIVE:\OUT.lst&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts on what could be throwing it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS tech support says it was because of the log and print was originally not included.&lt;/P&gt;&lt;P&gt;I originally had it just as SYSIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 20:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188757#M4401</guid>
      <dc:creator>Sasnoob</dc:creator>
      <dc:date>2014-07-21T20:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Process Throwing Error</title>
      <link>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188758#M4402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does "MyDrive" have a drive letter assigned in Windows or are you just hiding the fact that you are trying to use F:\ or some other drive letter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 20:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188758#M4402</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-21T20:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Process Throwing Error</title>
      <link>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188759#M4403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just wrote that over it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets call it C:\temp\&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 21:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188759#M4403</guid>
      <dc:creator>Sasnoob</dc:creator>
      <dc:date>2014-07-21T21:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Process Throwing Error</title>
      <link>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188760#M4404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming there is a file "c:\temp\OUT.sas" then can you try to run below and tell us how it went?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"C:\Program Files\SASHome\SASFoundation\9.3\sas.exe" -SYSIN c:\temp\OUT.sas -log c:\temp\OUT.log -print c:\temp\OUT.lst -nosplash -icon&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have an server context set-up then you could also use a command like below which then gives you this servers environment by executing all the cfg's and autoexecs as defined in sas.bat:&lt;/P&gt;&lt;P&gt;"C:\SAS\Config\Lev1\SASApp\sas.bat" -SYSIN c:\temp\OUT.sas -log c:\temp\OUT.log -print c:\temp\OUT.lst -nosplash -icon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 22:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188760#M4404</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-07-21T22:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Process Throwing Error</title>
      <link>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188761#M4405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your error is indicating some scripting error made in the batch file (.bat). The processing of SAS looking at config options will stop immediate when it detects an error.&lt;/P&gt;&lt;P&gt;Stopping is done when interpreting de -sysin option ( I would prefer the lower case, sometimes upcase is causing errors) .&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The batch processing in the 9.3 documentation Windows looks not be updated from history (8.2 not 9.3). &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#p16esisc4nrd5sn1ps5l6u8f79k6.htm" title="http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#p16esisc4nrd5sn1ps5l6u8f79k6.htm"&gt;SAS(R) 9.3 Companion for Windows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The -sysin &lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#p0b06tx8njyvz5n1w8f1qzwdqel1.htm" title="http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#p0b06tx8njyvz5n1w8f1qzwdqel1.htm"&gt;SAS(R) 9.3 Companion for Windows&lt;/A&gt; should switch some settings form interactive to batch. I remember SAS versions this was not working correctly &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting the rootcause is debugging possible cases.&lt;/P&gt;&lt;P&gt;An error on the filename could be caused by special characters in the file-name / directory name.&amp;nbsp; You will need quotes around those when this happens.&lt;/P&gt;&lt;P&gt;When the issue is having a complicated directory-name an easy solution can be setting the current directory at windows according your needs. Do not code this anymore in your sas-batchcall statement.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your script nested using the %1 %2 etc there can be a fundamental text processing issue. This is something you could recognize with C-programming experience&lt;/P&gt;&lt;P&gt;A parameter list in C is defined as a list of strings each separated by one binary-zero. The list ends with two binary zero-s. A binary zero and space are both seen as blank.&lt;/P&gt;&lt;P&gt;A string can be composed all type of common known characters each word separated by blanks.&lt;/P&gt;&lt;P&gt;You cannot see the difference between those two but they are technical being different. This is the same at Unix where there is a solution for this issue having the $* reference indicating not to parse the string but keeping the string as is.&lt;BR /&gt;The issue: a list of options with SAS should be a real string not being parsed into a list.&lt;/P&gt;&lt;P&gt;Not following this requirement will cause errors as you have described.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are having a local SAS installation. &lt;/P&gt;&lt;P&gt;Do you have a BI/DI installation with a metadataserver your platform admin can define a batch server that is having a script for batch-processing.&lt;/P&gt;&lt;P&gt;That is were tot ..\Lev1\... naming of Patrick is coming from.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 05:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188761#M4405</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-22T05:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Process Throwing Error</title>
      <link>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188762#M4406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if "Mydrive" contains blanks or other special characters, you need to enclose the complete path name to your source/log/print files in quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 07:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188762#M4406</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-07-22T07:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Process Throwing Error</title>
      <link>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188763#M4407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running 9.3!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up changing -SYSIN to lowercase and then using the -icon and -nosplash&amp;nbsp; ( I know one of these just suppresses the popup window).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had two other process in the bat file but ended up just lowercasing the sysin - as opposed to outputting the log and list in a certain directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They ended up working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 13:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Batch-Process-Throwing-Error/m-p/188763#M4407</guid>
      <dc:creator>Sasnoob</dc:creator>
      <dc:date>2014-07-22T13:26:39Z</dc:date>
    </item>
  </channel>
</rss>

