<?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 How do you use the %input statement? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-you-use-the-input-statement/m-p/298689#M20375</link>
    <description>&lt;P&gt;Good evening,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone know how to use the %input statement in a macro in order to read in a value for a macro variable?&lt;/P&gt;&lt;P&gt;I use SAS Enterprise Guide,&amp;nbsp;so&amp;nbsp;the macro is written in the code window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first attempts unfortunately didn't work.&lt;/P&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%macro identi; 
%put Type in your name; 
%input name; 
%put Type in your age; 
%input age; 
%put &amp;amp;name is &amp;amp;age years old; 
%mend identi; 

%identi;&lt;/PRE&gt;&lt;P&gt;When you start the program, there is no possibility for the user to type in the values for the variables. Only the log window opens.&lt;/P&gt;&lt;P&gt;Do I have to program an extra window where the user can type in the variable values or is there something else wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help&amp;nbsp;would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;FlorianG&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2016 15:30:09 GMT</pubDate>
    <dc:creator>FlorianG</dc:creator>
    <dc:date>2016-09-15T15:30:09Z</dc:date>
    <item>
      <title>How do you use the %input statement?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-you-use-the-input-statement/m-p/298689#M20375</link>
      <description>&lt;P&gt;Good evening,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone know how to use the %input statement in a macro in order to read in a value for a macro variable?&lt;/P&gt;&lt;P&gt;I use SAS Enterprise Guide,&amp;nbsp;so&amp;nbsp;the macro is written in the code window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first attempts unfortunately didn't work.&lt;/P&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%macro identi; 
%put Type in your name; 
%input name; 
%put Type in your age; 
%input age; 
%put &amp;amp;name is &amp;amp;age years old; 
%mend identi; 

%identi;&lt;/PRE&gt;&lt;P&gt;When you start the program, there is no possibility for the user to type in the values for the variables. Only the log window opens.&lt;/P&gt;&lt;P&gt;Do I have to program an extra window where the user can type in the variable values or is there something else wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help&amp;nbsp;would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;FlorianG&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-you-use-the-input-statement/m-p/298689#M20375</guid>
      <dc:creator>FlorianG</dc:creator>
      <dc:date>2016-09-15T15:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the %input statement?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-you-use-the-input-statement/m-p/298695#M20376</link>
      <description>&lt;P&gt;For EG you may want to look at PROMPT.&lt;/P&gt;
&lt;P&gt;The %input and %window statements were created before much in the GUI. Also, the variables you create this way would exist for the duration of the macro (brief). You would want to add %Global statements to make the varaibles persist after the macro runs. See the documentation on scope of macro variables.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-you-use-the-input-statement/m-p/298695#M20376</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-15T15:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the %input statement?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-you-use-the-input-statement/m-p/298697#M20377</link>
      <description>&lt;P&gt;%input &amp;nbsp;works well in sas PC and in command prompt, but for command prompt sas you can use x command and echo instead of %put to pass on the message to the interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_prompt_ works well in noth sas pc and in sas EG.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-you-use-the-input-statement/m-p/298697#M20377</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2016-09-15T15:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the %input statement?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-you-use-the-input-statement/m-p/299229#M20391</link>
      <description>&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 09:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-you-use-the-input-statement/m-p/299229#M20391</guid>
      <dc:creator>FlorianG</dc:creator>
      <dc:date>2016-09-19T09:32:13Z</dc:date>
    </item>
  </channel>
</rss>

