<?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: Proc Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264674#M51955</link>
    <description>&lt;P&gt;You can't just change the TYPE&amp;nbsp;of a variable like&amp;nbsp;&lt;SPAN&gt;RBRVSYEAR from character to number.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So if your source table has&amp;nbsp;RBRVSYEAR as $4 and your want it as a number then you need do some renaming along the way.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
&amp;nbsp; length&amp;nbsp;RBRVSYEAR 8 ..... ;
&amp;nbsp; set have (rename=(RBRVSYEAR=RBRVSYEAR_char ....)) ;
&amp;nbsp;&amp;nbsp;RBRVSYEAR = input(RBRVSYEAR,4.);
&amp;nbsp; drop&amp;nbsp;RBRVSYEAR_char ;
  ...
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2016 21:02:13 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2016-04-18T21:02:13Z</dc:date>
    <item>
      <title>Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264649#M51941</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; I am trying to put a dataset in the format that can be used by another application.&amp;nbsp; I've gone through several proc sql steps and are down to the final step. I've spent 8 hours on this myself and am thoroughly frustrated and stuck.&lt;/P&gt;&lt;P&gt;The dataset that has the data is folder.cpt_expan_annualcodeupdate_fix.&lt;/P&gt;&lt;P&gt;The final format needs to be the following:&lt;/P&gt;&lt;P&gt;RBRVSYear&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,SubspecialtyId &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,FSSSubspecialtyId&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,ProcedureCodeCategory &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;Char&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,ProcedureCode &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;Char&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,ModifierCode&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;Char&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,BlendedSiteOfService&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;Char&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,CignaWorkFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,CignaFacilityPracticeFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,CignaNonFacilityPracticeFactor &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,CignaMalPracticeFactor &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,MedicareWorkFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,MedicareFacilityPracticeFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,MedicareNonFacilityPracticeFac&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,MedicareMalpracticeFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,LabAmount&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;7.2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Courier New"&gt;I've tried to create a table with the above format and use a proc append with the force option, but I must not have the syntax correct.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;proc&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#000080" size="2" face="Courier New"&gt;&lt;FONT color="#000080" size="2" face="Courier New"&gt;&lt;FONT color="#000080" size="2" face="Courier New"&gt;append&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;base&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt; = folder.pst_reference_cptrbrvs_work &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt; = folder.pst_reference_cptrbrvs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;FORCE&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;run&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;Any help someone can provide I'd greatly appreciate it.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 18:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264649#M51941</guid>
      <dc:creator>Laurel</dc:creator>
      <dc:date>2016-04-18T18:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264651#M51942</link>
      <description>&lt;P&gt;Are you trying to append to a SAS data set or something in another DBMS?&lt;/P&gt;
&lt;P&gt;HOW are you attempting to make the table? Show code if possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the target dataset is a SAS data set show us the results of proc content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The force option means that variables with the same name and type will append to a dataset if some other characteristic such as format, length, label differ. It does not mean that variables that are in the DATA data set that are &lt;STRONG&gt;not&lt;/STRONG&gt; in the Base data will be in the resulting data file.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 19:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264651#M51942</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-18T19:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264654#M51945</link>
      <description>&lt;P&gt;Just to echo the need for more information ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say "another application" does that mean another SAS program or a different language entirely?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this data need to be combined with additional existing data, or is it just a matter of processing the current set of data by another application?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is very possible that you're very close to a final solution here.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 19:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264654#M51945</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-18T19:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264657#M51947</link>
      <description>&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;I created a SAS dataset on my local drive from information from a DB2 Mainframe.&lt;/P&gt;&lt;P&gt;It is my created SAS dataset that I'm not trying to format after some additional manipulations.&lt;/P&gt;&lt;P&gt;The Proc Content of my original SAS Dataset is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that I used to create a new table that has the necessary format is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#000080" size="2" face="Courier New"&gt;&lt;FONT color="#000080" size="2" face="Courier New"&gt;&lt;FONT color="#000080" size="2" face="Courier New"&gt;sql&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;create &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;table&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt; folder.pst_reference_cptrbrvs_work &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;RBRVSYear&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,SubspecialtyId&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,FSSSubspecialtyId&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,ProcedureCodeCategory&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;Char&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,ProcedureCode&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;Char&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,ModifierCode&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;Char&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,BlendedSiteOfService&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;Char&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,CignaWorkFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,CignaFacilityPracticeFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,CignaNonFacilityPracticeFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,CignaMalPracticeFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,MedicareWorkFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,MedicareFacilityPracticeFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,MedicareNonFacilityPracticeFac&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,MedicareMalpracticeFactor&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;6.3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;,LabAmount&amp;nbsp;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;num&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;&lt;FONT color="#008080" size="2" face="Courier New"&gt;7.2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;);&lt;/P&gt;&lt;P&gt;quit&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;Here is my proc append code:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#000080" size="2" face="Courier New"&gt;&lt;FONT color="#000080" size="2" face="Courier New"&gt;&lt;FONT color="#000080" size="2" face="Courier New"&gt;append&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;base&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt; = folder.pst_reference_cptrbrvs_work &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;&lt;FONT color="#0000ff" size="2" face="Courier New"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt; = folder.pst_reference_cptrbrvs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;FORCE&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;run&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE border="1" cellspacing="1" cellpadding="7"&gt;&lt;TBODY&gt;&lt;TR&gt; Alphabetic List of Variables and Attributes&lt;/TR&gt;&lt;TR&gt; # Variable Type Len Format Informat Label&lt;/TR&gt;&lt;TR&gt; 7&lt;TD&gt;BLENDEDSITEOFSERVICE&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;$1.&lt;/TD&gt;&lt;TD&gt;$1.&lt;/TD&gt;&lt;TD&gt;BLENDEDSITEOFSERVICE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 9&lt;TD&gt;CIGNAFACILITYPRACTICEFACTOR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;CIGNAFACILITYPRACTICEFACTOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 11&lt;TD&gt;CIGNAMALPRACTICEFACTOR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;CIGNAMALPRACTICEFACTOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 10&lt;TD&gt;CIGNANONFACILITYPRACTICEFACTOR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;CIGNANONFACILITYPRACTICEFACTOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 8&lt;TD&gt;CIGNAWORKFACTOR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;CIGNAWORKFACTOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 3&lt;TD&gt;FSSSubspecialtyId&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 16&lt;TD&gt;LABAMOUNT&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;7.2&lt;/TD&gt;&lt;TD&gt;7.2&lt;/TD&gt;&lt;TD&gt;LABAMOUNT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 13&lt;TD&gt;MEDICAREFACILITYPRACTICEFACTOR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;MEDICAREFACILITYPRACTICEFACTOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 15&lt;TD&gt;MEDICAREMALPRACTICEFACTOR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;MEDICAREMALPRACTICEFACTOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 14&lt;TD&gt;MEDICARENONFACILITYPRACTICEFAC&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;MEDICARENONFACILITYPRACTICEFAC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 12&lt;TD&gt;MEDICAREWORKFACTOR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;8.3&lt;/TD&gt;&lt;TD&gt;MEDICAREWORKFACTOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 6&lt;TD&gt;MODIFIERCODE&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;$2.&lt;/TD&gt;&lt;TD&gt;$2.&lt;/TD&gt;&lt;TD&gt;MODIFIERCODE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 5&lt;TD&gt;PROCEDURECODE&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;$5.&lt;/TD&gt;&lt;TD&gt;$5.&lt;/TD&gt;&lt;TD&gt;PROCEDURECODE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 4&lt;TD&gt;PROCEDURECODECATEGORY&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;$1.&lt;/TD&gt;&lt;TD&gt;$1.&lt;/TD&gt;&lt;TD&gt;PROCEDURECODECATEGORY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 1&lt;TD&gt;RBRVSYEAR&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;$4.&lt;/TD&gt;&lt;TD&gt;$4.&lt;/TD&gt;&lt;TD&gt;RBRVSYEAR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; 2&lt;TD&gt;SubspecialtyId&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 18 Apr 2016 19:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264657#M51947</guid>
      <dc:creator>Laurel</dc:creator>
      <dc:date>2016-04-18T19:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264660#M51950</link>
      <description>&lt;P&gt;If I interpret this correctly, you have an existing SAS data set named folder.cpt_expan_annualcodeupdate_fix&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That SAS data set needs to remain as a SAS data set, yet been transformed into the proper format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's the case, a four-line DATA step would do it (although some statements might be lengthy):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data folder.transformed;&lt;/P&gt;
&lt;P&gt;LENGTH ...;&lt;/P&gt;
&lt;P&gt;set folder.cpt_expan_annualcodeupdate_fix;&lt;/P&gt;
&lt;P&gt;FORMAT ...;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The LENGTH statement should assign the variables their proper length, in the order that the variables should appear in the final data set.&amp;nbsp; For example, the beginning of the LENGTH statement might read:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;length RBRVSYear 8&lt;/P&gt;
&lt;P&gt;Subspecialtyld 8&lt;/P&gt;
&lt;P&gt;FSSSubspecialtyld 8&lt;/P&gt;
&lt;P&gt;ProcedureCodeCategory $ 1&lt;/P&gt;
&lt;P&gt;...;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SET statement could, optionally, subset the variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set folder.cpt_expan_annualcodeupdate_fix (keep=list of variables to keep);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the FORMAT statement would add the formats:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format CignaWorkFactor 6.3&lt;/P&gt;
&lt;P&gt;CignaFacilityPracticefactor 6.3&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need to mention every variable in the FORMAT statement ... just those that require a format.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 20:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264660#M51950</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-18T20:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264669#M51953</link>
      <description>&lt;P&gt;If the list of variables(columns) have&amp;nbsp;some that are numeric and some that are text, which variables should be listed under the "length" and which variables should be listed under the "format"? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 20:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264669#M51953</guid>
      <dc:creator>Laurel</dc:creator>
      <dc:date>2016-04-18T20:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264670#M51954</link>
      <description>&lt;P&gt;All variables get listed in the LENGTH statement.&amp;nbsp; That's because I'm assuming the "formatting" of the data set includes the ordering of the columns, something that the LENGTH statement controls if it appears early enough in the DATA step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The FORMAT statement names only the variables that receive a format, supplying both the variable name and the format.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 20:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264670#M51954</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-18T20:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264674#M51955</link>
      <description>&lt;P&gt;You can't just change the TYPE&amp;nbsp;of a variable like&amp;nbsp;&lt;SPAN&gt;RBRVSYEAR from character to number.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So if your source table has&amp;nbsp;RBRVSYEAR as $4 and your want it as a number then you need do some renaming along the way.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
&amp;nbsp; length&amp;nbsp;RBRVSYEAR 8 ..... ;
&amp;nbsp; set have (rename=(RBRVSYEAR=RBRVSYEAR_char ....)) ;
&amp;nbsp;&amp;nbsp;RBRVSYEAR = input(RBRVSYEAR,4.);
&amp;nbsp; drop&amp;nbsp;RBRVSYEAR_char ;
  ...
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 21:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264674#M51955</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-04-18T21:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264676#M51956</link>
      <description>&lt;P&gt;Here is my attempt without the renaming that Tom has indicated that I need. &amp;nbsp; I'm not sure how to incorporate Tom's information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data folder.pst_reference_cptrbrvs_final;&lt;BR /&gt;LENGTH&lt;BR /&gt;RBRVSYear $4.&lt;BR /&gt;SubspecialtyId 3&lt;BR /&gt;FSSSubspecialtyId 3&lt;BR /&gt;ProcedureCodeCategory $1.&lt;BR /&gt;ProcedureCode $5.&lt;BR /&gt;ModifierCode $2.&lt;BR /&gt;BlendedSiteOfService $1.&lt;BR /&gt;CignaWorkFactor 8&lt;BR /&gt;CignaFacilityPracticeFactor 8&lt;BR /&gt;CignaNonFacilityPracticeFactor 8&lt;BR /&gt;CignaMalPracticeFactor 8&lt;BR /&gt;MedicareWorkFactor 8&lt;BR /&gt;MedicareFacilityPracticeFactor 8&lt;BR /&gt;MedicareNonFacilityPracticeFac 8&lt;BR /&gt;MedicareMalpracticeFactor 8&lt;BR /&gt;LabAmount 8;&lt;BR /&gt;set folder.cpt_expan_annualcodeupdate_fix;&lt;BR /&gt;format&lt;BR /&gt;CignaWorkFactor 6.3&lt;BR /&gt;CignaFacilityPracticeFactor 6.3&lt;BR /&gt;CignaNonFacilityPracticeFactor 6.3&lt;BR /&gt;CignaMalPracticeFactor 6.3&lt;BR /&gt;MedicareWorkFactor 6.3&lt;BR /&gt;MedicareFacilityPracticeFactor 6.3&lt;BR /&gt;MedicareNonFacilityPracticeFac 6.3&lt;BR /&gt;MedicareMalpracticeFactor 6.3&lt;BR /&gt;LabAmount 7.2;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 21:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264676#M51956</guid>
      <dc:creator>Laurel</dc:creator>
      <dc:date>2016-04-18T21:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264681#M51958</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I want to thank everyone for their time. &amp;nbsp;I was making something much harder than it needed to be. &amp;nbsp;All I needed to do was to change the variable RBRVSYear from text to numeric. &amp;nbsp;After all of my attempts, literally 16 hours, and the feedback from this group I got it done in 10 minutes: &amp;nbsp;Here is the code that worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table folder.pst_reference_cptrbrvs_final as&lt;BR /&gt;(select&lt;BR /&gt;input(RBRVSYear, 4.) as RBRVSYear&lt;BR /&gt;,SubspecialtyId&lt;BR /&gt;,FSSSubspecialtyId&lt;BR /&gt;,ProcedureCodeCategory&lt;BR /&gt;,ProcedureCode&lt;BR /&gt;,ModifierCode&lt;BR /&gt;,BlendedSiteOfService&lt;BR /&gt;,CignaWorkFactor&lt;BR /&gt;,CignaFacilityPracticeFactor&lt;BR /&gt;,CignaNonFacilityPracticeFactor&lt;BR /&gt;,CignaMalPracticeFactor&lt;BR /&gt;,MedicareWorkFactor&lt;BR /&gt;,MedicareFacilityPracticeFactor&lt;BR /&gt;,MedicareNonFacilityPracticeFac&lt;BR /&gt;,MedicareMalpracticeFactor&lt;BR /&gt;,LabAmount&lt;BR /&gt;from folder.pst_reference_cptrbrvs&lt;BR /&gt;&lt;BR /&gt;);&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 21:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264681#M51958</guid>
      <dc:creator>Laurel</dc:creator>
      <dc:date>2016-04-18T21:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264995#M52039</link>
      <description>&lt;P&gt;Astounding(Super User), Thank you for the information data;length...;set;format...;.&amp;nbsp; I was able to use this to fix the dataset before exporting to Access.&amp;nbsp; Everyone, thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 03:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format/m-p/264995#M52039</guid>
      <dc:creator>Laurel</dc:creator>
      <dc:date>2016-04-20T03:57:53Z</dc:date>
    </item>
  </channel>
</rss>

