<?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: My SAS-code can't scan the parameters from Batch file which came from VBA in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246579#M46151</link>
    <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9﻿&lt;/a&gt;&amp;nbsp;unfortunately I don't have the authority not to choose Excel or long sheet name. My responsibility is just to find solutions somwhow.&lt;/P&gt;
&lt;P&gt;I also commented out the most SAS lines. I have only 2 command lines left in my SAS, and I still get the same error from batch.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Server=ServerPath; 
libname mylib "&amp;amp;Server\ExcelFolder";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I also tried to do that do-loop and scan as you wrote below.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data parameters (drop=i);
     array param{4} $ ("sasfilepath","sasfile","sasoutputpath","perdate");
     do i=1 to count("&amp;amp;sysparm.","#");
     parameter=param{i};
     result=%scan("&amp;amp;sysparm.",i,"#");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;However, I got an error for the "scan" line like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: i&amp;nbsp;
ERROR: Argument 2 to macro function %SCAN is not a number.
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, 
a numeric constant, a datetime constant, a missing value, INPUT, PUT.&lt;/PRE&gt;
&lt;P&gt;Then I wrote %put instead of %scan, but it showed an output like:&lt;/P&gt;
&lt;P&gt;("",i,"#")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser﻿&lt;/a&gt;&amp;nbsp;and Kurt, like you said, I used&lt;/P&gt;
&lt;P&gt;%put "&amp;amp;sysparm";&lt;/P&gt;
&lt;P&gt;and the log shows only "", so there is nothing as sysparm according to SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a result, even if I removed almost everything from the SAS code, i still get the same batch error like "&lt;SPAN&gt;This window is unavailable in line-mode.&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2016 11:02:52 GMT</pubDate>
    <dc:creator>cercig</dc:creator>
    <dc:date>2016-01-28T11:02:52Z</dc:date>
    <item>
      <title>My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246567#M46142</link>
      <description>&lt;P&gt;I am trying to run my SAS code from my VBA-code by using bat file (batch run). So the system should work like this: First VBA-code sends some parameters to bat file, then the bat file sends these parameters into my SAS code. Then the bat file executes my SAS code.&lt;/P&gt;
&lt;P&gt;However, obviously the Bat file can not send the parameters into my SAS-code, they don't exist according to the SAS-system. When I run my VBA-code (which runs also the Bat file), I get an error message like&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;This window is unavailable in line-mode.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The VBA code is like this:&lt;/P&gt;
&lt;PRE class="lang-vb prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="kwd"&gt;Public&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;Sub&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; RunSASCodeViaBatFile&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt;
    &lt;SPAN class="pun"&gt;...&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    Parameter settings here 
    &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;...&lt;/SPAN&gt;

    &lt;SPAN class="kwd"&gt;Dim&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; cmdString &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;As&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;String&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; cmdString &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; batPath &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; batFile &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="str"&gt;" "&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; SASFilePath &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="str"&gt;" "&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; SASFile &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="str"&gt;" "&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; SASOutputPath &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="str"&gt;" "&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; YearMonth
    &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;Dim&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; wsh &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;As&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;Object&lt;/SPAN&gt;
    &lt;SPAN class="kwd"&gt;Set&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; wsh &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; VBA&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;CreateObject&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"WScript.Shell"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="kwd"&gt;Dim&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; waitOnReturn &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;As&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;Boolean&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; waitOnReturn &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;True&lt;/SPAN&gt;
    &lt;SPAN class="kwd"&gt;Dim&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; windowStyle &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;As&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;Integer&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; windowStyle &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    wsh&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Run cmdString&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; windowStyle&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; waitOnReturn
&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;End&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;Sub&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The commands in batch file looks like this:&lt;/P&gt;
&lt;PRE class="lang-vb prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;Some General SAS settings &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; bat file &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;like&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="kwd"&gt;set&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; sas&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe"&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;autoexec
&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;....&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;

Settings &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; the input parameters
&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;set&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; SASFilePath&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=%&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="kwd"&gt;set&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; SASFile&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=%&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;2&lt;/SPAN&gt;
&lt;SPAN class="kwd"&gt;set&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; SASOutputPath&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=%&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;3&lt;/SPAN&gt;
&lt;SPAN class="kwd"&gt;set&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; YearMonth&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=%&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;4&lt;/SPAN&gt;

&lt;SPAN class="kwd"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;debug&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%==&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;1&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
   echo &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;thisscript&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; Debug&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; Execute SAS program
   echo &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;thisscript&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; Debug&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; sas&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;sas&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;
&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;   
&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;sas&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;sysin &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"%sasfilepath%\%sasfile%"&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SYSPARM &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"%SASFilePath%#%SASFile%#%SASOutputPath%#%YearMonth%"&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;log &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"%SASOutputPath%\log\%SASFile%_%date_time%.log"&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;nosplash &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;icon &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;no&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;$&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;syntaxcheck &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;rsasuser &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;noprint
&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;debug&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%==&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; echo &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;thisscript&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; Debug&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; errorlevel&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;errorlevel&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;
&lt;SPAN class="kwd"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;errorlevel&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; neq &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;0&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
  echo &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;thisscript&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%:&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;Error&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; Execution of SAS program returned code &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;errorlevel&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;
  &lt;SPAN class="kwd"&gt;exit&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;b &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;errorlevel&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;
&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And finally the SAS code scans (reads in) the batch parameters like below. I am trying to read batch parameters with &lt;CODE&gt;SYSPARM&lt;/CODE&gt; command:&lt;/P&gt;
&lt;PRE class="lang-vb prettyprint prettyprinted"&gt;&lt;CODE&gt;    &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;LET&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; sasfilepath &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SCAN&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SYSPARM&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="com"&gt;'#');&lt;/SPAN&gt;
    &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;LET&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; sasfile &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SCAN&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SYSPARM&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="com"&gt;'#');&lt;/SPAN&gt;
    &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;LET&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; sasoutputpath &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SCAN&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SYSPARM&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;3&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="com"&gt;'#');&lt;/SPAN&gt;
    &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;LET&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; perdate &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SCAN&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SYSPARM&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="com"&gt;'#');&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think the problem happens when the SAS code try to scan the parameters &lt;CODE&gt;batPath&lt;/CODE&gt;, &lt;CODE&gt;batfile&lt;/CODE&gt;, &lt;CODE&gt;SASFilePath&lt;/CODE&gt;, &lt;CODE&gt;SASFile&lt;/CODE&gt;, &lt;CODE&gt;SASOutputPath&lt;/CODE&gt;, &lt;CODE&gt;YearMonth&lt;/CODE&gt;. Because the batch file can use these parameters correctly to create log names or to find paths with these parameters. That's why I am writing under "Base SAS PRogramming" location on this forum. Because I believe that I am not scanning the parameters inside the SAS code correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So anyone has any idea about why my SAS can't scan the bat-parameters?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:11:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246567#M46142</guid>
      <dc:creator>cercig</dc:creator>
      <dc:date>2016-01-28T09:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246569#M46143</link>
      <description>&lt;P&gt;Do a %put "&amp;amp;sysparm" in a test program to see what is handed over as a whole.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you already have the separate environment vars SASFilePath, SASFile, SASOutputPath and YearMonth, why not use %sysget to retrieve these separately?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246569#M46143</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-28T09:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246570#M46144</link>
      <description>&lt;P&gt;Sorry, this is going to sound harsh. &amp;nbsp;Why? &amp;nbsp;What you have there is a mess. &amp;nbsp;What are you doing in VBA that it needs to goto a batch file and then run SAS? &amp;nbsp;SAS has several functions to import data directly from Excel - which is what I assume you are using - which would remove the need for VBA and the batch file - i.e. simpler more robust. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for parsing parameters into macro variables, firstly I generally advise against using macro parameters until absolutely needed. &amp;nbsp;SAS datasets are specifically designed to deal with data, macro language isn't. &amp;nbsp;Your code will be easier to read, simpler, and more robust if you put parameters into a dataset, and if you really have to, call symput them into macro variables where needed. &amp;nbsp;This will also help you debug:&lt;/P&gt;
&lt;PRE&gt;data parameters (drop=i);
  array param{4} $ ("sasfilepath","sasfile","sasoutputpath","perdate");
  do i=1 to counw("&amp;amp;syspam.","#");
    parameter=param{i};  
    result=scan("&amp;amp;sysparm.",i,"#");
    output;
  end;
run;
&lt;/PRE&gt;
&lt;P&gt;This will give you a dataset with the sysparm split so you can see each string, you could also have another variable for the full string passed in. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246570#M46144</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-28T09:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246572#M46145</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;
&lt;P&gt;First of all thanks for your tips.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already tried to save a parameter (for instance &amp;amp;sasoutputpath) like below since log file from batch doesn't show if "sasoutputpath" exists or not. And also because I run the system inside a VBA code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET sasoutputpath = %SCAN(&amp;amp;SYSPARM., 3, '#');
data tryin;
	pathname=&amp;amp;sasoutputpath;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But SAS complained about it expected a string or numeric variable. Because obviously there was no such a variable&amp;nbsp;like sasoutputpath according to SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%sysget seems to be very useful for my case. But how can I use it for multiple variables? &amp;nbsp;How can I separate them? For example, if the bat file is sending variables like:&lt;/P&gt;
&lt;PRE&gt;%sas% -sysin "%sasfilepath%\%sasfile%" -SYSPARM "%SASFilePath%#%SASFile%#%SASOutputPath%#%YearMonth%" -log "%SASOutputPath%\log\%SASFile%_%date_time%.log" -nosplash -icon -no$syntaxcheck -rsasuser -noprint&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246572#M46145</guid>
      <dc:creator>cercig</dc:creator>
      <dc:date>2016-01-28T09:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246574#M46146</link>
      <description>&lt;P&gt;As I already said, you need to check first how sysparm is handed over to the SAS system. At the moment, you can't say what happens when the DOS batch job is executed and what actually appears on the commandline so that SAS can see it.&lt;/P&gt;
&lt;P&gt;So do a&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put "&amp;amp;sysparm";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and look in the log first before anything else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, regarding %sysget (or the sysget function in a data step)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you have done&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;set A=X&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;in a DOS batch file (or &lt;FONT face="courier new,courier"&gt;export A=X&lt;/FONT&gt; in a UNIX shell script), and call SAS from that batch file (script), then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let SYS_A=%sysget(A);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will give you a macro variable that contains X (note no quotes, as the macro language is character only and needs no quotes).&lt;/P&gt;
&lt;P&gt;You then have no need to use &amp;amp;sysparm at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This method is actually how all our batch jobs are run.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246574#M46146</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-28T10:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246576#M46148</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9﻿&lt;/a&gt;&amp;nbsp;Thanks for your reply. I also think that it seems a bit mess there.&lt;/P&gt;
&lt;P&gt;Now I realize that I remembered something a bit wrong. Before I tried to get a parameter from an open Excel file by using below (because the sheet name was too long, so only Connect To Excel option could work with long sheet name) but I got error because the file was open.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
	CONNECT TO EXCEL (PATH="&amp;amp;ExcelFolder\&amp;amp;file" HEADER=NO);
	create table ...
        ...
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now I tried with `proc import` and it seems like it works with open Excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I want to ask about your solution in anyway. Because in case if I have to work with long sheet names again, then I can't use `proc import`.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I implemented your solution, with do-loop and scan-sysparm, but I still get the same error like "&lt;SPAN&gt;This window is unavailable in line-mode.&lt;/SPAN&gt;" Do you know what can cause this error? I searched this error on google, and it seems like you get this error when there is something wrong in the SAS code.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246576#M46148</guid>
      <dc:creator>cercig</dc:creator>
      <dc:date>2016-01-28T10:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246577#M46149</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET sasoutputpath = %SCAN(&amp;amp;SYSPARM., 3, '#');
data tryin;
	pathname=&amp;amp;sasoutputpath;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this piece of code, if sasoutputpath was c:\temp\sas, the data step would look like this after the macro var is resolved:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tryin;
	pathname=c:\temp\sas;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So you get the complaint about the incorrect variable name. Use "&amp;amp;sasoutputpath" instead, to make it a string value.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246577#M46149</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-28T10:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246578#M46150</link>
      <description>&lt;P&gt;So, question 1, why is the sheet name too long (in fact why use Excel in the first place, but hey). &amp;nbsp;Shorten it, the fact that something allows you to do something, does not necessarily mean its a good thing to do. &amp;nbsp;As for your error:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/44/705.html" target="_blank"&gt;http://support.sas.com/kb/44/705.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I would say somewhere in your code you have something that can only be run interactively see the link. &amp;nbsp;Could also be in the autoexec.sas. &amp;nbsp;Post your code as well.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246578#M46150</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-28T10:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246579#M46151</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9﻿&lt;/a&gt;&amp;nbsp;unfortunately I don't have the authority not to choose Excel or long sheet name. My responsibility is just to find solutions somwhow.&lt;/P&gt;
&lt;P&gt;I also commented out the most SAS lines. I have only 2 command lines left in my SAS, and I still get the same error from batch.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Server=ServerPath; 
libname mylib "&amp;amp;Server\ExcelFolder";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I also tried to do that do-loop and scan as you wrote below.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data parameters (drop=i);
     array param{4} $ ("sasfilepath","sasfile","sasoutputpath","perdate");
     do i=1 to count("&amp;amp;sysparm.","#");
     parameter=param{i};
     result=%scan("&amp;amp;sysparm.",i,"#");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;However, I got an error for the "scan" line like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: i&amp;nbsp;
ERROR: Argument 2 to macro function %SCAN is not a number.
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, 
a numeric constant, a datetime constant, a missing value, INPUT, PUT.&lt;/PRE&gt;
&lt;P&gt;Then I wrote %put instead of %scan, but it showed an output like:&lt;/P&gt;
&lt;P&gt;("",i,"#")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser﻿&lt;/a&gt;&amp;nbsp;and Kurt, like you said, I used&lt;/P&gt;
&lt;P&gt;%put "&amp;amp;sysparm";&lt;/P&gt;
&lt;P&gt;and the log shows only "", so there is nothing as sysparm according to SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a result, even if I removed almost everything from the SAS code, i still get the same batch error like "&lt;SPAN&gt;This window is unavailable in line-mode.&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246579#M46151</guid>
      <dc:creator>cercig</dc:creator>
      <dc:date>2016-01-28T11:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246581#M46152</link>
      <description>&lt;P&gt;Well, I still suggest as the easiest way to directly use the DOS environment vars with %sysget.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And go at it step-by-step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just have a SAS program (c:\temp\test.sas) that does&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let env_a=%sysget(A);

%put env_a="&amp;amp;env_a";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and nothing else.&lt;/P&gt;
&lt;P&gt;Then write the batch file as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set A=xxxx&lt;/P&gt;
&lt;P&gt;sas -sysin c:\temp\test.sas -log c:\temp\test.log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and look at the log after the run. Once that works, expand from there until you have a complete batch file that works the way you originally intended. Then go to VBA and build that batch file from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everytime something fails, do an output instead of running a program. In UNIX shell scripts, I use the echo command to simply show me the commandline I would have run. I only remove the echo once its generated the way I want it.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246581#M46152</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-28T11:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246582#M46153</link>
      <description>&lt;P&gt;You will need to speak with your IT desk, who installed the SAS system. &amp;nbsp;It could be an issue in the autoexec.sas.&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; parameters &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;drop&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;i&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
     &lt;SPAN class="token statement"&gt;array&lt;/SPAN&gt; param&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;4&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"sasfilepath"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"sasfile"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"sasoutputpath"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"perdate"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
     do i&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; to &lt;SPAN class="token function"&gt;count&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"&amp;amp;sysparm."&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"#"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
     parameter&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;param&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;i&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
     result&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token macroname"&gt;%scan&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"&amp;amp;sysparm."&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;i&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"#"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This isn't the code I posted, there is no need to use %scan .&lt;/P&gt;
&lt;P&gt;This in the log:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;("",i,"#")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Shows you that nothing is present in &amp;amp;sysparm. &amp;nbsp;So the problem is not in the SAS code but in your batch file or VBA, which is outside the remit of a SAS forum.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246582#M46153</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-28T11:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: My SAS-code can't scan the parameters from Batch file which came from VBA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246597#M46162</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser﻿&lt;/a&gt;&amp;nbsp;thanks Kurt, it really worked. The interesting point is that I don't get that error window when I run the bat file directly. Now I realized that I get that error window when I run the batch script inside the VBA code, even if the process works without problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a bit interesting, because on SAS page, it says that error page appears if some code line is not correct in SAS when running the batch code. But as I said, when I click and run the batch file directly, that window doesn't appear.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 12:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-SAS-code-can-t-scan-the-parameters-from-Batch-file-which-came/m-p/246597#M46162</guid>
      <dc:creator>cercig</dc:creator>
      <dc:date>2016-01-28T12:26:13Z</dc:date>
    </item>
  </channel>
</rss>

