<?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: selecting the contents of the table after selecting the date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774261#M246062</link>
    <description>&lt;P&gt;Inputs for dynamic code are done in Enterprise Guide by defining user prompts. Such user prompts, when defined as type date, will deliver the resulting date in DATE9 format in a macro variable that has the name of the prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what are you trying to do? Please give us the bigger picture.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 15:55:52 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-10-14T15:55:52Z</dc:date>
    <item>
      <title>selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774225#M246041</link>
      <description>&lt;P&gt;I would like to use the box to select the date, e.g. June 30, and then I would like to create a table from the library credit with two columns where Default is 1&lt;/P&gt;&lt;P&gt;This is my code, but nothing happens, the window does not appear, but with the dates from the initial start of the program. How to replace the code so that after pressing the runes, the date selection window will open and then create a table with these two items. Where is the mistake&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%let gv_dateDEF=%sysevalf(%bquote('&amp;amp;data.'d));
%let yy=%sysfunc( YEAR(&amp;amp;gv_dateDEF.),z4.);
%let mm=%sysfunc(MONTH(&amp;amp;gv_dateDEF.),z2.);
%let dd=%sysfunc( DAY(&amp;amp;gv_dateDEF.),z2.);
%let gv_tbl_date=%eval(%str(&amp;amp;yy&amp;amp;mm&amp;amp;dd));
proc sql;
create table NewDef as
select
spr_NRB,
where(spr_DEFAULT = 1)
from credit;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Oct 2021 13:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774225#M246041</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T13:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774227#M246042</link>
      <description>&lt;P&gt;Macro triggers will not be resolved when inside single quotes.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 14:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774227#M246042</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-14T14:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774228#M246043</link>
      <description>&lt;P&gt;And your whole conversion can be simplified to this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let data = 30jun2021;
%let gv_tbl_date = %sysfunc(inputn(&amp;amp;data.,date9.),yymmddn8.);
%put &amp;amp;=gv_tbl_date.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Oct 2021 14:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774228#M246043</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-14T14:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774229#M246044</link>
      <description>are you mean change to : %let gv_dateDEF=%sysevalf(%bquote("&amp;amp;data."d)); ?</description>
      <pubDate>Thu, 14 Oct 2021 14:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774229#M246044</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T14:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774235#M246050</link>
      <description>Thanks a lot! So if i Good understood if i have date in table like 2021-08-31 i should change to yymmddn10. And date to %let date = 2021-08-31? And for example if i have many date in my dataset i can add where date=gv_tbl_date</description>
      <pubDate>Thu, 14 Oct 2021 14:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774235#M246050</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774241#M246052</link>
      <description>&lt;P&gt;Your code as posted was designed to create a date string of 8 digits with no delimiters. So I did that.&lt;/P&gt;
&lt;P&gt;To get 10 digits with hyphens as delimiters, use the YYMMDD10. format.&lt;/P&gt;
&lt;P&gt;And I used the DATE9. informat for the initial string because it looks like you have that at this moment. Macro variables created by user prompts of type date will look like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you need this to use as a cutoff for SAS dates, apply no format at all, and use the raw value (number of days since 1960-01-01).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So please show what you really get initially in &amp;amp;data, and what you intend to do with the macro variable you create.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 14:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774241#M246052</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-14T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774257#M246060</link>
      <description>&lt;P&gt;When i run your code still nothing happend. No bugs , no information. Above % let date I also have another code above. Maybe it is a matter that at the start of all code I run a macro with data? However, here also needs to open another date picker. For example, now I am doing a report for September, but in this table I have to take the dates for June&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gieorgie_0-1634226125281.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64708i5E423C9C5EC7047B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gieorgie_0-1634226125281.png" alt="Gieorgie_0-1634226125281.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 15:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774257#M246060</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774260#M246061</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gieorgie_0-1634226600411.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64709i06DA44A636A431FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gieorgie_0-1634226600411.png" alt="Gieorgie_0-1634226600411.png" /&gt;&lt;/span&gt;I would like to open such a window ( inputox)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 15:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774260#M246061</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T15:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774261#M246062</link>
      <description>&lt;P&gt;Inputs for dynamic code are done in Enterprise Guide by defining user prompts. Such user prompts, when defined as type date, will deliver the resulting date in DATE9 format in a macro variable that has the name of the prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what are you trying to do? Please give us the bigger picture.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 15:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774261#M246062</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-14T15:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774269#M246063</link>
      <description>I would like to create such an inputbox, but I do not know how, wich one after clicking on the program, a window with a date selection would appear. and to execute your macro after selecting the date</description>
      <pubDate>Thu, 14 Oct 2021 16:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774269#M246063</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774275#M246064</link>
      <description>&lt;P&gt;In Enterprise Guide, you create such windows as user prompts; the resulting code + prompts can then be converted to a stored process to be run on the stored process server, either from EG or through the web interface.&lt;/P&gt;
&lt;P&gt;In Display Manager, you can use input commands, but I haven't worked with DM in a &lt;EM&gt;very&lt;/EM&gt; long time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which of the interfaces for the SAS system are you using? Display Manager, Enterprise Guide, SAS Studio?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 16:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774275#M246064</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-14T16:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774277#M246065</link>
      <description>Is Date in mart_credit a SAS date? Numeric with a format? &lt;BR /&gt;What is the name of the prompt with the date and how does it resolve? You can check it with the following:&lt;BR /&gt;&lt;BR /&gt;%put &amp;amp;promptVariable.;&lt;BR /&gt;&lt;BR /&gt;If the date is numeric with a date format and promptVariableValue looks like '01Jun2021' then your code would look like:&lt;BR /&gt;&lt;BR /&gt;where date = "&amp;amp;promptVariable"d;</description>
      <pubDate>Thu, 14 Oct 2021 16:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774277#M246065</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-14T16:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774279#M246066</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gieorgie_0-1634228873362.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64722i76E12DA34A7BCBFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gieorgie_0-1634228873362.png" alt="Gieorgie_0-1634228873362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I HAVE CREATED A PROMPT CORE DATE BUT HOW TO ASSIGN THIS TO A PROGRAM ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 16:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774279#M246066</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T16:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774280#M246067</link>
      <description>where date = "&amp;amp;corepdate"d;</description>
      <pubDate>Thu, 14 Oct 2021 16:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774280#M246067</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-14T16:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774284#M246069</link>
      <description>But how to run prompt to select needed date? How to assigned this prompt to some button / programs</description>
      <pubDate>Thu, 14 Oct 2021 16:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774284#M246069</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774286#M246071</link>
      <description>&lt;P&gt;&lt;STRONG&gt;WHICH.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;INTERFACE.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DO.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;YOU.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;USE?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;As long as you refrain from really answering our questions, we will not be able to help you.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 16:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774286#M246071</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-14T16:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774287#M246072</link>
      <description>Sas enterprise guide sas eg im using</description>
      <pubDate>Thu, 14 Oct 2021 16:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774287#M246072</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T16:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774291#M246076</link>
      <description>&lt;P&gt;This then?&lt;BR /&gt;&lt;A href="https://video.sas.com/detail/video/3829767505001/create-and-use-prompts-in-queries-and-tasks" target="_blank" rel="noopener"&gt;https://video.sas.com/detail/video/3829767505001/create-and-use-prompts-in-queries-and-tasks&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or a written reference if you prefer that:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings13/028-2013.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings13/028-2013.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 17:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774291#M246076</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-14T17:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774302#M246082</link>
      <description>&lt;P&gt;Ok, I created a prompt where I can select a list from the hints, how to enter a macro in the Program icon that will load me the date from the prom?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 17:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774302#M246082</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-10-14T17:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: selecting the contents of the table after selecting the date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774304#M246083</link>
      <description>Did you look at the video or paper referenced? It has instructions on how to create a prompt and then use it in your processes.</description>
      <pubDate>Thu, 14 Oct 2021 18:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-the-contents-of-the-table-after-selecting-the-date/m-p/774304#M246083</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-14T18:02:21Z</dc:date>
    </item>
  </channel>
</rss>

