<?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 Recoding a Column in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-a-Column/m-p/100130#M8892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to recode a column to show that in column A a&amp;nbsp; 1 (Numeric) = Private Passenger (Char)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting syntax errors e. g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: The following columns were not found in the contributing tables: Private_Passenger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what I'm doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 19:56:06 GMT</pubDate>
    <dc:creator>BillB</dc:creator>
    <dc:date>2013-10-01T19:56:06Z</dc:date>
    <item>
      <title>Recoding a Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-a-Column/m-p/100130#M8892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to recode a column to show that in column A a&amp;nbsp; 1 (Numeric) = Private Passenger (Char)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting syntax errors e. g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: The following columns were not found in the contributing tables: Private_Passenger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what I'm doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 19:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-a-Column/m-p/100130#M8892</guid>
      <dc:creator>BillB</dc:creator>
      <dc:date>2013-10-01T19:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding a Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-a-Column/m-p/100131#M8893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best long term approach for this is to create a SAS format.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In EG there are two ways to create formats (actually, three ways if you don't mind writing code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two tasks are:&lt;/P&gt;&lt;P&gt;- Tasks-&amp;gt;Data-&amp;gt;Create Format&lt;/P&gt;&lt;P&gt;- Tasks-&amp;gt;Data-&amp;gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2009/04/27/creating-a-sas-format-from-a-data-set/"&gt;Create Format from Data Set&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are both straightforward to use, but I like the second one if you have lots of values to map.&amp;nbsp; It might be easier to enter the values in a data set or read them in from an Excel spreadsheet (perhaps you already have them in that form).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have a SAS format, you can apply it within any task using this approach:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2011/11/30/just-in-time-data-prep-in-sas-enterprise-guide/" title="http://blogs.sas.com/content/sasdummy/2011/11/30/just-in-time-data-prep-in-sas-enterprise-guide/"&gt;Just-in-time data prep in SAS Enterprise Guide - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Query Builder, you can also change the properties of any output column to include a custom format that you have defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 20:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-a-Column/m-p/100131#M8893</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-10-01T20:08:28Z</dc:date>
    </item>
  </channel>
</rss>

