<?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 to display the User prompt 2 based on&amp;quot;Automatic&amp;quot; or &amp;quot;Manual&amp;quot;. value in prompt 1 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-the-User-prompt-2-based-on-quot-Automatic-quot-or/m-p/643489#M35902</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to display a multiple user prompts based on yes or no value in previous prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Logic:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Consider &lt;STRONG&gt;Prompt 1&lt;/STRONG&gt; as Runtype with &lt;STRONG&gt;list values&lt;/STRONG&gt; &lt;STRONG&gt;"Automatic" and "Manual".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prompt 2 as date picker&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;prompt 3 as text user input&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;user selects&lt;/STRONG&gt; &lt;STRONG&gt;"Manual"&lt;/STRONG&gt; for prompt 1 then in the next window or in same window user should get prompted with prompt 2 and prompt 2&amp;nbsp; asking repective inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF the &lt;STRONG&gt;user selects "Automatic"&lt;/STRONG&gt; the value have to assign automatically for those two prompt. This automatic value assigning is completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;code logic for autoasigning Value for prompt 2 if&amp;nbsp;"Automatic"&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;tday=today();&lt;BR /&gt;put tday YYMMD.;&lt;BR /&gt;lastDay=intnx ('month',tday,-1,'E');&lt;BR /&gt;if weekday(lastDay) = 1 then lastDay = lastDay-2;&lt;BR /&gt;else if weekday(lastDay)= 7 then lastDay = lastDay-1;&lt;BR /&gt;mydate=put(lastday,DATE9.);&lt;BR /&gt;CALL SYMPUT ("mydate", mydate);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%let process_date_Cm = "&amp;amp;mydate"d;&lt;BR /&gt;%put &amp;amp;process_date_Cm.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;code logic for autoasigning Value for prompt 3 if&amp;nbsp;"Automatic"&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data DDMMC;&lt;BR /&gt;tday=today();&lt;BR /&gt;put tday DDMMYYN6.;&lt;BR /&gt;chardate = put(tday,DDMMYYN6.);&lt;BR /&gt;Todate = substr(chardate, 1, 4) ;&lt;BR /&gt;DDMM = input(Todate,best5.);&lt;BR /&gt;put DDMM;&lt;BR /&gt;/* type = vtype(DDMM);*/&lt;BR /&gt;/* put type;*/&lt;BR /&gt;CALL SYMPUT ("DDMM", DDMM);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let DDMM = &amp;amp;DDMM;&lt;BR /&gt;%put &amp;amp;DDMM.;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 08:33:40 GMT</pubDate>
    <dc:creator>Abinandhans</dc:creator>
    <dc:date>2020-04-28T08:33:40Z</dc:date>
    <item>
      <title>How to display the User prompt 2 based on"Automatic" or "Manual". value in prompt 1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-the-User-prompt-2-based-on-quot-Automatic-quot-or/m-p/643489#M35902</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to display a multiple user prompts based on yes or no value in previous prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Logic:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Consider &lt;STRONG&gt;Prompt 1&lt;/STRONG&gt; as Runtype with &lt;STRONG&gt;list values&lt;/STRONG&gt; &lt;STRONG&gt;"Automatic" and "Manual".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prompt 2 as date picker&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;prompt 3 as text user input&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;user selects&lt;/STRONG&gt; &lt;STRONG&gt;"Manual"&lt;/STRONG&gt; for prompt 1 then in the next window or in same window user should get prompted with prompt 2 and prompt 2&amp;nbsp; asking repective inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF the &lt;STRONG&gt;user selects "Automatic"&lt;/STRONG&gt; the value have to assign automatically for those two prompt. This automatic value assigning is completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;code logic for autoasigning Value for prompt 2 if&amp;nbsp;"Automatic"&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;tday=today();&lt;BR /&gt;put tday YYMMD.;&lt;BR /&gt;lastDay=intnx ('month',tday,-1,'E');&lt;BR /&gt;if weekday(lastDay) = 1 then lastDay = lastDay-2;&lt;BR /&gt;else if weekday(lastDay)= 7 then lastDay = lastDay-1;&lt;BR /&gt;mydate=put(lastday,DATE9.);&lt;BR /&gt;CALL SYMPUT ("mydate", mydate);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%let process_date_Cm = "&amp;amp;mydate"d;&lt;BR /&gt;%put &amp;amp;process_date_Cm.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;code logic for autoasigning Value for prompt 3 if&amp;nbsp;"Automatic"&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data DDMMC;&lt;BR /&gt;tday=today();&lt;BR /&gt;put tday DDMMYYN6.;&lt;BR /&gt;chardate = put(tday,DDMMYYN6.);&lt;BR /&gt;Todate = substr(chardate, 1, 4) ;&lt;BR /&gt;DDMM = input(Todate,best5.);&lt;BR /&gt;put DDMM;&lt;BR /&gt;/* type = vtype(DDMM);*/&lt;BR /&gt;/* put type;*/&lt;BR /&gt;CALL SYMPUT ("DDMM", DDMM);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let DDMM = &amp;amp;DDMM;&lt;BR /&gt;%put &amp;amp;DDMM.;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 08:33:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-the-User-prompt-2-based-on-quot-Automatic-quot-or/m-p/643489#M35902</guid>
      <dc:creator>Abinandhans</dc:creator>
      <dc:date>2020-04-28T08:33:40Z</dc:date>
    </item>
  </channel>
</rss>

