<?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: USER Prompt window using SAS in Unix in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/USER-Prompt-window-using-SAS-in-Unix/m-p/468935#M119837</link>
    <description>&lt;P&gt;Did you try it?&amp;nbsp; It has always worked for me.&lt;/P&gt;
&lt;P&gt;Make sure that you are using X-windows and not just dumb terminal.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jun 2018 16:46:17 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-06-09T16:46:17Z</dc:date>
    <item>
      <title>USER Prompt window using SAS in Unix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/USER-Prompt-window-using-SAS-in-Unix/m-p/468931#M119834</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a program&amp;nbsp;some thing like below (and the file is added to a source control)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let data = source.adsl;&lt;/P&gt;&lt;P&gt;%let var = age;&lt;/P&gt;&lt;P&gt;%let proc_to_run = mean;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro procs();&lt;BR /&gt;%if &amp;amp;proc_to_run eq mean %then %do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; proc means data = &amp;amp;data;var &amp;amp;var;run;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if &amp;amp;proc_to_run eq freq %then %do;&lt;BR /&gt;proc freq data = a;table &amp;amp;var;run;&lt;BR /&gt;%end;&lt;BR /&gt;%else %put selected procedure is invalid;&lt;BR /&gt;%mend;&lt;BR /&gt;%procs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To, change the parameter values I need to check out and check in the program every time.&lt;/P&gt;&lt;P&gt;To avoid that, i taught to enter the values during the execution time by prompting a window with three parameters.&lt;/P&gt;&lt;P&gt;One for input dataset, second is for analysis variable and third is for procedure to execute (by&amp;nbsp;listing the available procedures).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the below code on net,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;** This code is for the SAS windowing environment only. **/

/** %WINDOW defines the prompt **/
%window info
  #5 @5 'Please enter userid:'
  #5 @26 id 8 attr=underline
  #7 @5 'Please enter password:'
  #7 @28 pass 8 attr=underline display=no;

/** %DISPLAY invokes the prompt **/
%display info;

%put userid entered was &amp;amp;id;
%put password entered was &amp;amp;pass;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which is suitable for windows environment. Is there anyway to achieve the same in UNIX environment ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 12:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/USER-Prompt-window-using-SAS-in-Unix/m-p/468931#M119834</guid>
      <dc:creator>venkibhu</dc:creator>
      <dc:date>2018-06-09T12:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: USER Prompt window using SAS in Unix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/USER-Prompt-window-using-SAS-in-Unix/m-p/468935#M119837</link>
      <description>&lt;P&gt;Did you try it?&amp;nbsp; It has always worked for me.&lt;/P&gt;
&lt;P&gt;Make sure that you are using X-windows and not just dumb terminal.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 16:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/USER-Prompt-window-using-SAS-in-Unix/m-p/468935#M119837</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-06-09T16:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: USER Prompt window using SAS in Unix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/USER-Prompt-window-using-SAS-in-Unix/m-p/468961#M119852</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;I tried but that is not working when I run on unix server.&lt;/P&gt;&lt;P&gt;Can you&amp;nbsp;provide some more details about the x-windows and how you have achieved...&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Venkat.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 23:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/USER-Prompt-window-using-SAS-in-Unix/m-p/468961#M119852</guid>
      <dc:creator>venkibhu</dc:creator>
      <dc:date>2018-06-09T23:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: USER Prompt window using SAS in Unix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/USER-Prompt-window-using-SAS-in-Unix/m-p/469094#M119926</link>
      <description>&lt;P&gt;How are you starting SAS.&amp;nbsp; Normally I open a X terminal window on the UNIX server (running sas xterm, dtterm, etc).&lt;/P&gt;
&lt;P&gt;When you do that you should have an environment variable named DISPLAY that should look something like hostname:n where hostname is the name of the host where your X Windows Server software is running and the number after the colon is which screen on that X windows server your terminal is running.&amp;nbsp; Then to run SAS interactively you just type the command sas at the command prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If instead you just have a X windows server running, but you are not running a X windows compatible terminal window then you might need to add the -display option to the command line to tell SAS what X windows screen to open the interactive SAS windows.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 04:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/USER-Prompt-window-using-SAS-in-Unix/m-p/469094#M119926</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-06-11T04:12:25Z</dc:date>
    </item>
  </channel>
</rss>

