<?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: SAS Prompt display formatted value on report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211773#M13977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, what software are we using here when we talk about "prompt"?&amp;nbsp; What is contained in the macro variable &amp;amp;Prompt_bigCar.&amp;nbsp; If it is just the number 1 or text 01, then you should have a format somewhere that is used to reference it.&amp;nbsp;&amp;nbsp; E.g.&lt;/P&gt;&lt;P&gt;%let Prompt_bigCar=01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value car $&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01'='big car';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title "%sysfunc(put(&amp;amp;Prompt_bigCar.,$car.))";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 15:06:25 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-07-28T15:06:25Z</dc:date>
    <item>
      <title>SAS Prompt display formatted value on report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211768#M13972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to display the formatted value of my prompt macro variable on the report?&lt;/P&gt;&lt;P&gt;I got a unformatted value of 12 and a formatted value of "December" I dont want that the user sees "12" but "December".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the following I only get the 12 displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=crazydata;&lt;/P&gt;&lt;P&gt;TITLE&amp;nbsp; JUSTIFY=L &amp;amp;Prompt_Year ;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 14:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211768#M13972</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-07-27T14:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Prompt display formatted value on report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211769#M13973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At a guess: &lt;/P&gt;&lt;P&gt;title justify=l "%sysfunc(put(&amp;amp;prompt_year.,your_format.))";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although why have a macro variable called year which has a month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 14:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211769#M13973</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-27T14:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Prompt display formatted value on report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211770#M13974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I dont really have a specific format. I just want that the formatted value is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Although why have a macro variable called year which has a month?" -&amp;gt; because the year has 12 months &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 07:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211770#M13974</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-07-28T07:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Prompt display formatted value on report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211771#M13975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but the first question I would ask is which year then?&amp;nbsp; Anyways, your choice.&amp;nbsp; Good Programming Practice would indicate that giving variable names clearly identifiable names helps programming and maintaining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for format, you can use monname.:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201049.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201049.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 07:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211771#M13975</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-28T07:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Prompt display formatted value on report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211772#M13976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. I think my example of picking a date/year/month prompt does not really hit the mark.&lt;/P&gt;&lt;P&gt;Let me draw a different picture. If I have a prompt like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formatted value / unformatted value &lt;/P&gt;&lt;P&gt;big car______________01&lt;/P&gt;&lt;P&gt;small car____________002&lt;/P&gt;&lt;P&gt;medium car__________300&lt;/P&gt;&lt;P&gt;fat car_______________04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I now get the formatted value in my title?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=crazydata;&lt;/P&gt;&lt;P&gt;TITLE&amp;nbsp; JUSTIFY=L &amp;amp;Prompt_bigCar ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 14:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211772#M13976</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-07-28T14:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Prompt display formatted value on report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211773#M13977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, what software are we using here when we talk about "prompt"?&amp;nbsp; What is contained in the macro variable &amp;amp;Prompt_bigCar.&amp;nbsp; If it is just the number 1 or text 01, then you should have a format somewhere that is used to reference it.&amp;nbsp;&amp;nbsp; E.g.&lt;/P&gt;&lt;P&gt;%let Prompt_bigCar=01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value car $&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01'='big car';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title "%sysfunc(put(&amp;amp;Prompt_bigCar.,$car.))";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211773#M13977</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-28T15:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Prompt display formatted value on report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211774#M13978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;I am using Enterprise Guide 6.1.&lt;/P&gt;&lt;P&gt;I was afraid that I had to build a second mapping table in the code to map formatted to unformatted values again to just put the prompt formatted value on the report title....that is really lame.&lt;/P&gt;&lt;P&gt;the prompt is defined in EG like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formatted value / unformatted value &lt;/P&gt;&lt;P&gt;big car______________01&lt;/P&gt;&lt;P&gt;small car____________002&lt;/P&gt;&lt;P&gt;medium car__________300&lt;/P&gt;&lt;P&gt;fat car_______________04&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 10:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211774#M13978</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-07-29T10:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Prompt display formatted value on report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211775#M13979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will let others comment on the functionality of EG, haven't used it for many years.&amp;nbsp; Might help if you post the topic under the specific EG forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 11:49:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Prompt-display-formatted-value-on-report/m-p/211775#M13979</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-29T11:49:36Z</dc:date>
    </item>
  </channel>
</rss>

