<?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 EG and the Output Window - Formatted Variable Output in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-the-Output-Window-Formatted-Variable-Output/m-p/494878#M31884</link>
    <description>&lt;P&gt;When you say "output window" -- you meant the data grid view?&amp;nbsp; This&amp;nbsp;&lt;STRONG&gt;should&lt;/STRONG&gt; be showing you the formatted data.&amp;nbsp; If it works for PROC SQL then it will work for DATA step -- does not matter how the format is set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that you're looking at the correct data source.&amp;nbsp; It's possible that you're creating multiple different data sets, and looking at one that doesn't have the format applied.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 14:27:30 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2018-09-12T14:27:30Z</dc:date>
    <item>
      <title>SAS EG and the Output Window - Formatted Variable Output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-the-Output-Window-Formatted-Variable-Output/m-p/494873#M31883</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;In SAS EG my results are opened in the Output Window automatically.&amp;nbsp; I like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS EG using Proc SQL I can change the displayed variable output in the Output Window my specifying a format in the SELECT statement like this.&amp;nbsp; By doing this the myNewDollar variable appears in the Output Window looking like $100.00.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table Want as&lt;/P&gt;&lt;P&gt;select myDollar format dollar15.2 as myNewDollar&lt;/P&gt;&lt;P&gt;from Have;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when using the SAS datastep in SAS EG, when the Output Window is populated the variable is not formatted as desired. It is display as&amp;nbsp;&lt;SPAN&gt;100.00 (without the $ sign)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Want;&lt;BR /&gt;set Have;&lt;BR /&gt;format myNewDollar dollar15.2;&lt;/P&gt;&lt;P&gt;myNewDollar = myExistingDollar;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm wondering if it's possible to get the variable output to the Output Window formatted using the data step without having to add additional Procs like a Proc Print?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 14:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-the-Output-Window-Formatted-Variable-Output/m-p/494873#M31883</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2018-09-12T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG and the Output Window - Formatted Variable Output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-the-Output-Window-Formatted-Variable-Output/m-p/494878#M31884</link>
      <description>&lt;P&gt;When you say "output window" -- you meant the data grid view?&amp;nbsp; This&amp;nbsp;&lt;STRONG&gt;should&lt;/STRONG&gt; be showing you the formatted data.&amp;nbsp; If it works for PROC SQL then it will work for DATA step -- does not matter how the format is set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that you're looking at the correct data source.&amp;nbsp; It's possible that you're creating multiple different data sets, and looking at one that doesn't have the format applied.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 14:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-the-Output-Window-Formatted-Variable-Output/m-p/494878#M31884</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-09-12T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG and the Output Window - Formatted Variable Output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-the-Output-Window-Formatted-Variable-Output/m-p/494880#M31885</link>
      <description>&lt;P&gt;I concur with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;. I just did a quick test, and it worked fine for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My test code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
	set sashelp.class;
	format NWeight dollar15.2;
	NWeight = Weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 14:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-the-Output-Window-Formatted-Variable-Output/m-p/494880#M31885</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-09-12T14:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG and the Output Window - Formatted Variable Output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-the-Output-Window-Formatted-Variable-Output/m-p/494922#M31894</link>
      <description>Yup, you are absolutely correct. Thanks for taking the time to identify my issue. I appreciate it.</description>
      <pubDate>Wed, 12 Sep 2018 17:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-and-the-Output-Window-Formatted-Variable-Output/m-p/494922#M31894</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2018-09-12T17:04:48Z</dc:date>
    </item>
  </channel>
</rss>

