<?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 Prompt that dynamically provides a list of years that depends on the current year in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846362#M41785</link>
    <description>&lt;P&gt;I would like to build a prompt in SAS EG 8.2 that gives the user a list of years to chose from. The list should include all years from, lets say t-3 to t+1, where t is the current year. As you can see in the example below I started out quite well. However, now I would like the "list of values" to be populated, dynamically, with the years&amp;nbsp; 2019-2023, assuming that the current year is 2022. Next year, 2023, the "list of values" should be populated dynamically with 2020-2024 and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I acheive this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skärmbild 2022-11-25 185515.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77721i1282CD850B0A4464/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Skärmbild 2022-11-25 185515.png" alt="Skärmbild 2022-11-25 185515.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 18:09:49 GMT</pubDate>
    <dc:creator>Multipla99</dc:creator>
    <dc:date>2022-11-25T18:09:49Z</dc:date>
    <item>
      <title>Prompt that dynamically provides a list of years that depends on the current year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846362#M41785</link>
      <description>&lt;P&gt;I would like to build a prompt in SAS EG 8.2 that gives the user a list of years to chose from. The list should include all years from, lets say t-3 to t+1, where t is the current year. As you can see in the example below I started out quite well. However, now I would like the "list of values" to be populated, dynamically, with the years&amp;nbsp; 2019-2023, assuming that the current year is 2022. Next year, 2023, the "list of values" should be populated dynamically with 2020-2024 and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I acheive this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skärmbild 2022-11-25 185515.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77721i1282CD850B0A4464/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Skärmbild 2022-11-25 185515.png" alt="Skärmbild 2022-11-25 185515.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 18:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846362#M41785</guid>
      <dc:creator>Multipla99</dc:creator>
      <dc:date>2022-11-25T18:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Prompt that dynamically provides a list of years that depends on the current year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846805#M41798</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13363"&gt;@Multipla99&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at your screen shot, I see two contradicting settings!&lt;BR /&gt;Method for populating prompt: &lt;EM&gt;User selects values from a &lt;U&gt;&lt;STRONG&gt;static&lt;/STRONG&gt;&lt;/U&gt; list&lt;/EM&gt;&lt;BR /&gt;vs.&lt;/P&gt;
&lt;P&gt;your requirement: &lt;EM&gt;the "list of values" should be populated &lt;STRONG&gt;dynamically&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To achieve 100% automatic dynamic list of values,&amp;nbsp; You'll need to&lt;/P&gt;
&lt;P&gt;1. Create a Dataset view&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data &amp;lt;lib&amp;gt;.dyn_years/view=&amp;lt;lib&amp;gt;.dyn_years;
   do year=(year(date())-3) to (year(date())+1);
       output;
   end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846805#M41798</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2022-11-29T14:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Prompt that dynamically provides a list of years that depends on the current year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846814#M41799</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13363"&gt;@Multipla99&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to continue where I left-off&lt;/P&gt;
&lt;P&gt;2. Register the newly created dataset view (&amp;lt;lib&amp;gt;.dyn_years) into your Metadata Server (If you have one), and save it in accessible Metadata folder&lt;/P&gt;
&lt;P&gt;3. Change the&amp;nbsp;&lt;SPAN&gt;Method for populating prompt to:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;User selects values from a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;&lt;STRONG&gt;dynamic&lt;/STRONG&gt;&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;list&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;4. Specify/select the&amp;nbsp;newly created dataset view (&amp;lt;lib&amp;gt;.dyn_years) as the Data source:, and populate additional fields as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, I don't think there is automated way to convert &lt;STRONG&gt;static&lt;/STRONG&gt; list into &lt;STRONG&gt;dynamic&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846814#M41799</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2022-11-29T14:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Prompt that dynamically provides a list of years that depends on the current year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846821#M41800</link>
      <description>&lt;P&gt;Thank you so much, AhmedAl_Attar, for helping me with this!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say that I could save the suggested view in the accessible metadata folder. I definitely have a Metadata server, see below, but I don't know how to find the accessible Metadata folder. Is this folder something you can help me to locate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skärmbild 2022-11-29 153328.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77813i7DF23F609DBB7AAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Skärmbild 2022-11-29 153328.png" alt="Skärmbild 2022-11-29 153328.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846821#M41800</guid>
      <dc:creator>Multipla99</dc:creator>
      <dc:date>2022-11-29T14:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Prompt that dynamically provides a list of years that depends on the current year</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846832#M41801</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13363"&gt;@Multipla99&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll have to coordinate with your SAS Administrator, as he/she should have access to SAS Management Console or other tools that would register Library references, tables, views, and security controls for your SAS environment&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompt-that-dynamically-provides-a-list-of-years-that-depends-on/m-p/846832#M41801</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2022-11-29T14:57:59Z</dc:date>
    </item>
  </channel>
</rss>

