<?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: Batch execution from context menu in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70505#M15255</link>
    <description>You will need to explain the purpose and processing logic for the "logcheck" macro you mentioned?  Include information about your SAS version, as well -- it makes a difference.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Companion for Windows - Submitting SAS Code&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/a000104288.htm#a003202824" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/a000104288.htm#a003202824&lt;/A&gt;</description>
    <pubDate>Thu, 10 Sep 2009 11:40:20 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-09-10T11:40:20Z</dc:date>
    <item>
      <title>Batch execution from context menu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70504#M15254</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I need a solution for executing SAS programs in the batch. Let me explain the exact solution.&lt;BR /&gt;
&lt;BR /&gt;
I have 20 programs in the Windows explorer. I want to execute 5 selected programs with right click context Menu "Batch submit in SAS 9.1" action and also i want to check the Logs of the those executed 5 programs. &lt;BR /&gt;
&lt;BR /&gt;
But the problem is, it is executing each program in each session(concurrently) and also i dont know how to call my logcheck macro for the selected sas file logs.&lt;BR /&gt;
&lt;BR /&gt;
Hope this understands my situation. Please help me to solve this issue.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Sudhakar</description>
      <pubDate>Thu, 10 Sep 2009 10:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70504#M15254</guid>
      <dc:creator>Sudhakar_A</dc:creator>
      <dc:date>2009-09-10T10:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Batch execution from context menu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70505#M15255</link>
      <description>You will need to explain the purpose and processing logic for the "logcheck" macro you mentioned?  Include information about your SAS version, as well -- it makes a difference.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Companion for Windows - Submitting SAS Code&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/a000104288.htm#a003202824" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/a000104288.htm#a003202824&lt;/A&gt;</description>
      <pubDate>Thu, 10 Sep 2009 11:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70505#M15255</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-10T11:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Batch execution from context menu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70506#M15256</link>
      <description>Logcheck is the macro which will check the "Errors", "Warnings" in the SAS Log file.&lt;BR /&gt;
&lt;BR /&gt;
My sas version is SAS 9.1</description>
      <pubDate>Thu, 10 Sep 2009 11:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70506#M15256</guid>
      <dc:creator>Sudhakar_A</dc:creator>
      <dc:date>2009-09-10T11:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Batch execution from context menu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70507#M15257</link>
      <description>We need more information about the macro - without seeing the code (paste it in your reply), it's not going to be easy to help you find a solution to your problem. &lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 10 Sep 2009 12:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70507#M15257</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-10T12:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Batch execution from context menu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70508#M15258</link>
      <description>Explore using SAS system option ALTLOG= (at invocation time) and also consider using PROC PRINTTO with LOG=&lt;FILEREF&gt;.  Refer to the SAS DOC references provided in this thread for details.&lt;BR /&gt;
&lt;BR /&gt;
Here is a Google advanced search argument which yields matches against the SAS.COM  SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website:&lt;BR /&gt;
&lt;BR /&gt;
routing log output batch site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Managing SAS Output under Windows &lt;BR /&gt;
Routing Procedure Output and the SAS Log to a File&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/procoutput.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/procoutput.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
ALTLOG System Option: Windows&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/win-sysop-altlog.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/win-sysop-altlog.htm&lt;/A&gt;&lt;/FILEREF&gt;</description>
      <pubDate>Thu, 10 Sep 2009 12:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70508#M15258</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-10T12:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Batch execution from context menu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70509#M15259</link>
      <description>Hi Scott,&lt;BR /&gt;
&lt;BR /&gt;
I think you didn't understand my question, let me tell you correctly.&lt;BR /&gt;
&lt;BR /&gt;
Try from your system. &lt;BR /&gt;
&lt;BR /&gt;
1. Select more than one sas program in the windows explorer and then right click on it you can see "Batch Submit with SAS 9.1" click on it you can see selected programs are executing in batch concurrently. I want this to be executed one by one sequentially. this is my first question. &lt;BR /&gt;
&lt;BR /&gt;
2. In addition to the above one i need to check the log files created by this sas programs after the program execution&lt;BR /&gt;
&lt;BR /&gt;
Hope this explains you my problem. Please help me solve this problem.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Sudhakar</description>
      <pubDate>Fri, 11 Sep 2009 04:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70509#M15259</guid>
      <dc:creator>Sudhakar_A</dc:creator>
      <dc:date>2009-09-11T04:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Batch execution from context menu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70510#M15260</link>
      <description>when you have several SAS programs selected, and want SAS to run these in batch, how would you indicate the order in which they should run?&lt;BR /&gt;
Would it be possible to create a separate SAS program which contains&lt;BR /&gt;
 &lt;BR /&gt;
option nosyntaxcheck source2 ;&lt;BR /&gt;
%include {name of first program} ;&lt;BR /&gt;
%include {name of next program} ; &lt;BR /&gt;
%include {name of next program} ; &lt;BR /&gt;
%include {name of next program} ; &lt;BR /&gt;
%include {name of next program} ; &lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
Then just start this program.&lt;BR /&gt;
You will have just one SAS log to analyse, and hopefully all your programs are properly tested and will contain no syntax errors, only data errors.&lt;BR /&gt;
 &lt;BR /&gt;
There are alternatives.&lt;BR /&gt;
  &lt;BR /&gt;
good luck&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 18 Sep 2009 15:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70510#M15260</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-09-18T15:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Batch execution from context menu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70511#M15261</link>
      <description>Suggest reviewing the SAS Companion for Windows - it mentions the ability to drag selected file(s) into an active SAS session's LOG window and SAS will then prompt you to "Submit".  Unfortunately, you will not get your individual program's SAS log created in a separate file for each program, as it occurs when executing SAS batch requests.&lt;BR /&gt;
&lt;BR /&gt;
Regarding your "log check" macro - you can explore using PROC PRINTTO and also the ALTLOG= OPTIONS parameter to re-direct your SAS log output to a file for whatever parsing and validating you want.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 18 Sep 2009 16:23:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-execution-from-context-menu/m-p/70511#M15261</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-18T16:23:31Z</dc:date>
    </item>
  </channel>
</rss>

