<?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 Apply format to a variable in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Apply-format-to-a-variable-in-sas/m-p/307159#M65747</link>
    <description>&lt;P&gt;How do I apply a YN. format to a variable in&amp;nbsp;a sas dataset?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 15:22:52 GMT</pubDate>
    <dc:creator>zz</dc:creator>
    <dc:date>2016-10-25T15:22:52Z</dc:date>
    <item>
      <title>Apply format to a variable in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apply-format-to-a-variable-in-sas/m-p/307159#M65747</link>
      <description>&lt;P&gt;How do I apply a YN. format to a variable in&amp;nbsp;a sas dataset?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apply-format-to-a-variable-in-sas/m-p/307159#M65747</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2016-10-25T15:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Apply format to a variable in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apply-format-to-a-variable-in-sas/m-p/307166#M65750</link>
      <description>&lt;P&gt;I have a SAS dataset "AE". &amp;nbsp;There is a field "SERIOUS". &amp;nbsp;The format "YN." was missing. &amp;nbsp;If I need to apply the format "YN." to this "AE" dataset, what is the most straight forward and efficient way to apply "YN." format to the "SERIOUS" field in "AE" dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate your help very much!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apply-format-to-a-variable-in-sas/m-p/307166#M65750</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2016-10-25T15:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Apply format to a variable in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apply-format-to-a-variable-in-sas/m-p/307170#M65753</link>
      <description>&lt;P&gt;Most robust is usually when the data set is created if possible with a format statement.&lt;/P&gt;
&lt;P&gt;If you aren't going to replace the version of the data set (are &lt;STRONG&gt;real&lt;/STRONG&gt; sure you aren't) manually may work for you: open the dataset in table view click on the column heading and get the column properties, type the format name in the format box, apply and save.&lt;/P&gt;
&lt;P&gt;Or from the Columns view of the data set from the explorer similar.&lt;/P&gt;
&lt;P&gt;Or Proc Datasets will modify existing datasets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc datasets library=yourlib; /* put the name of the library where AE data set resides*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; modify ae;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format Serious YN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the procedure is one that supports multiple run statements so needs a quit; to actually end;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apply-format-to-a-variable-in-sas/m-p/307170#M65753</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-25T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Apply format to a variable in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apply-format-to-a-variable-in-sas/m-p/307174#M65754</link>
      <description>Much appreciate it, ballardw!</description>
      <pubDate>Tue, 25 Oct 2016 15:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apply-format-to-a-variable-in-sas/m-p/307174#M65754</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2016-10-25T15:58:35Z</dc:date>
    </item>
  </channel>
</rss>

