<?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: Enter User-Define Dates for batch Processing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Enter-User-Define-Dates-for-batch-Processing/m-p/595465#M171318</link>
    <description>&lt;P&gt;It's how you would do the second step, pass the parameters to your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182623"&gt;@MB_Analyst&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/SYSPARM-Pass-Command-Line-Arguments-to-SAS/td-p/194511" target="_blank" rel="noopener"&gt;this question&lt;/A&gt;&amp;nbsp;doing what I require? And I get the .bat file to prompt for the parameters?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 16:15:22 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-10-10T16:15:22Z</dc:date>
    <item>
      <title>Enter User-Define Dates for batch Processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-User-Define-Dates-for-batch-Processing/m-p/595430#M171290</link>
      <description>&lt;P&gt;I have some .sas file that is run from a .bat file as such:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;@echo off
# Run the SAS code
start sas "C:\file\to\code\runME.sas"

&lt;/PRE&gt;&lt;P&gt;The SAS program creates a PDF report, and I want the user to be able to define the time period the report is for. Is there anyway I can require the command window (or anything trigger by running the .bat file), to ask for a start and end date, that is then passed to SAS to report on the date range?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-User-Define-Dates-for-batch-Processing/m-p/595430#M171290</guid>
      <dc:creator>MB_Analyst</dc:creator>
      <dc:date>2019-10-10T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enter User-Define Dates for batch Processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-User-Define-Dates-for-batch-Processing/m-p/595438#M171297</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182623"&gt;@MB_Analyst&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there anyway I can require the command window (or anything trigger by running the .bat file), to ask for a start and end date, that is then passed to SAS to report on the date range?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, there are ways to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd use the bat script to ask for the parameters though, because that's really easy, and then pass them to the program to be used as parameters or macro variables in the START command.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 15:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-User-Define-Dates-for-batch-Processing/m-p/595438#M171297</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-10T15:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Enter User-Define Dates for batch Processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-User-Define-Dates-for-batch-Processing/m-p/595464#M171317</link>
      <description>&lt;P&gt;Is&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/SYSPARM-Pass-Command-Line-Arguments-to-SAS/td-p/194511" target="_blank" rel="noopener"&gt;this question&lt;/A&gt;&amp;nbsp;doing what I require? And I get the .bat file to prompt for the parameters?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 16:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-User-Define-Dates-for-batch-Processing/m-p/595464#M171317</guid>
      <dc:creator>MB_Analyst</dc:creator>
      <dc:date>2019-10-10T16:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Enter User-Define Dates for batch Processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-User-Define-Dates-for-batch-Processing/m-p/595465#M171318</link>
      <description>&lt;P&gt;It's how you would do the second step, pass the parameters to your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182623"&gt;@MB_Analyst&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/SYSPARM-Pass-Command-Line-Arguments-to-SAS/td-p/194511" target="_blank" rel="noopener"&gt;this question&lt;/A&gt;&amp;nbsp;doing what I require? And I get the .bat file to prompt for the parameters?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 16:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-User-Define-Dates-for-batch-Processing/m-p/595465#M171318</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-10T16:15:22Z</dc:date>
    </item>
  </channel>
</rss>

