<?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 Prompts (use both formatted and unformatted values) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompts-use-both-formatted-and-unformatted-values/m-p/379242#M24677</link>
    <description>&lt;P&gt;Context:&lt;/P&gt;&lt;P&gt;I have a SAS EG program, which i use to load data to our SAS VA server, and send an email to notify users that data is being loaded and an email once the load has completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As part of this program the user needs to select what dataset they are wanting to load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EG:&lt;/P&gt;&lt;P&gt;Unformatted Value &amp;nbsp; &amp;nbsp;Formatted Value&lt;/P&gt;&lt;P&gt;File1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Customer Data&lt;/P&gt;&lt;P&gt;File2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sales Data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;When i reference the prompt name (input_file) in the code it returns the unformatted value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have the program pull the formatted value from the prompt list, without having to actually code it specifically into the program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FILENAME Mailbox EMAIL;
DATA _NULL_;
FILE Mailbox 
TO= (emails here)
FROM= "&amp;amp;uemail"
SUBJECT="SAS VA Reports referencing &amp;amp;input_file table currently unavailable";
PUT "Hello All,";
PUT "Please be advised that table &amp;amp;input_file is currently being loaded to SAS VA (Discovery) by user &amp;amp;_metauser.";
PUT "This message is auto-generated.";
RUN;&lt;/PRE&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 00:18:32 GMT</pubDate>
    <dc:creator>SamuelD</dc:creator>
    <dc:date>2017-07-26T00:18:32Z</dc:date>
    <item>
      <title>Prompts (use both formatted and unformatted values)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompts-use-both-formatted-and-unformatted-values/m-p/379242#M24677</link>
      <description>&lt;P&gt;Context:&lt;/P&gt;&lt;P&gt;I have a SAS EG program, which i use to load data to our SAS VA server, and send an email to notify users that data is being loaded and an email once the load has completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As part of this program the user needs to select what dataset they are wanting to load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EG:&lt;/P&gt;&lt;P&gt;Unformatted Value &amp;nbsp; &amp;nbsp;Formatted Value&lt;/P&gt;&lt;P&gt;File1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Customer Data&lt;/P&gt;&lt;P&gt;File2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sales Data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;When i reference the prompt name (input_file) in the code it returns the unformatted value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have the program pull the formatted value from the prompt list, without having to actually code it specifically into the program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FILENAME Mailbox EMAIL;
DATA _NULL_;
FILE Mailbox 
TO= (emails here)
FROM= "&amp;amp;uemail"
SUBJECT="SAS VA Reports referencing &amp;amp;input_file table currently unavailable";
PUT "Hello All,";
PUT "Please be advised that table &amp;amp;input_file is currently being loaded to SAS VA (Discovery) by user &amp;amp;_metauser.";
PUT "This message is auto-generated.";
RUN;&lt;/PRE&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 00:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompts-use-both-formatted-and-unformatted-values/m-p/379242#M24677</guid>
      <dc:creator>SamuelD</dc:creator>
      <dc:date>2017-07-26T00:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Prompts (use both formatted and unformatted values)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompts-use-both-formatted-and-unformatted-values/m-p/379294#M24680</link>
      <description>&lt;P&gt;Is the list dynamic oder static? Is the formatted value generated by applying a format to the unformatted value? &lt;/P&gt;
&lt;P&gt;For dynamic lists adding a variable with the formatted value to the data source seems to be the only possibility to solve the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 08:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompts-use-both-formatted-and-unformatted-values/m-p/379294#M24680</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2017-07-26T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Prompts (use both formatted and unformatted values)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompts-use-both-formatted-and-unformatted-values/m-p/379325#M24681</link>
      <description>Hi Andreas_Ids, Yes this may be what i need to do, I guess i was hoping SAS had something built into EG, afterall when you use the prompt creator it lets you key two different values.</description>
      <pubDate>Wed, 26 Jul 2017 10:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Prompts-use-both-formatted-and-unformatted-values/m-p/379325#M24681</guid>
      <dc:creator>SamuelD</dc:creator>
      <dc:date>2017-07-26T10:39:14Z</dc:date>
    </item>
  </channel>
</rss>

