<?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: How to Run a Report in Batch? in SAS Web Report Studio</title>
    <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155413#M1880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kurt for your input! It's Windows environment. I was trying to use "call execute" as you suggested, but I'm not sure how to include the Stored Process. It takes a lot of time and effort to run same report 50 times every day. Is there an easy way I can run it using a macro?&lt;/P&gt;&lt;P&gt;-RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2014 03:02:20 GMT</pubDate>
    <dc:creator>Roger</dc:creator>
    <dc:date>2014-03-27T03:02:20Z</dc:date>
    <item>
      <title>How to Run a Report in Batch?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155411#M1878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a Stored Process Report in Web Report Studio that creates a PDF report. The person who created this report doesn't work with us anymore. The Stored Process has a prompt parameter called Filter: Male, Female, Alabama, Alaska, Arizona, etc. (50 States). All of these values are listed under a "Filter" parameter. Currently, I can select only one value and create a report in WRS. I need to select Male + Female + 50 States and create a PDF report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me to create a report for each of 50 states in batch? I was reading "&lt;SPAN style="font-size: 10pt;"&gt;&lt;A name="a003182446"&gt;Processing Reports Outside of SAS Web Report Studio" &lt;/A&gt;&lt;/SPAN&gt;in SAS Knowledge Base, but can't figure out how to include parameters/stored process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 23:50:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155411#M1878</guid>
      <dc:creator>Roger</dc:creator>
      <dc:date>2014-03-24T23:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Run a Report in Batch?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155412#M1879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on your environment, I suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- wrap the SAS code into a macro and then execute the macro for each parameter combination (you can do this in a data step, see "call execute")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- put the sas code into a .sas file, get male/female and state in the code from the OS environment (%sysget) and then write a wrapper script (UNIX: for STATE in AL ...;do;for GEN in M F; do; export STATE;export GEN;sas program.sas;done;done) to repeatedly run the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 08:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155412#M1879</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-03-25T08:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Run a Report in Batch?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155413#M1880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kurt for your input! It's Windows environment. I was trying to use "call execute" as you suggested, but I'm not sure how to include the Stored Process. It takes a lot of time and effort to run same report 50 times every day. Is there an easy way I can run it using a macro?&lt;/P&gt;&lt;P&gt;-RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 03:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155413#M1880</guid>
      <dc:creator>Roger</dc:creator>
      <dc:date>2014-03-27T03:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Run a Report in Batch?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155414#M1881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since a stored process is already controlled by macro variables (the prompts end up as such), you have to wrap the code into %macro something(); and %mend; insert a list of the prompt macro variables (without leading &amp;amp;) between the parentheses of the %macro statement.&lt;/P&gt;&lt;P&gt;If you want to repeatedly execute the macro from a data step, here's an example at the bottom of the page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a000543697.htm#a000384633" title="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a000543697.htm#a000384633"&gt;SAS(R) 9.2 Macro Language: Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 06:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155414#M1881</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-03-27T06:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Run a Report in Batch?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155415#M1882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Kurt! I really appreciate your help. -RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 15:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-Run-a-Report-in-Batch/m-p/155415#M1882</guid>
      <dc:creator>Roger</dc:creator>
      <dc:date>2014-04-03T15:37:08Z</dc:date>
    </item>
  </channel>
</rss>

