<?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: How to change the name and format of PROC IMPORT variables in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-change-the-name-and-format-of-PROC-IMPORT-variables/m-p/77457#M657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My preference when importing data files is to use the import wizard first.&amp;nbsp; This rarely creates a dataset in the exact required format, however if you press F4 from within an editor window, it will recall the data step code used by the wizard.&amp;nbsp; It is then a simple matter to edit the formats and variable names to achieve your desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 11:14:40 GMT</pubDate>
    <dc:creator>Keith</dc:creator>
    <dc:date>2012-09-26T11:14:40Z</dc:date>
    <item>
      <title>How to change the name and format of PROC IMPORT variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-change-the-name-and-format-of-PROC-IMPORT-variables/m-p/77456#M656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used PROC IMPORT to read a semicolon-delimited CSV-file. 14 variables have been created (VAR1-VAR14). Now I wonder what kind of statements I can use to change the name and format of these variables. This is my code so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;proc import&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; file='foldername/filename.csv'&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; out=&amp;amp;_OUTPUT. replace;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; delimiter=";";&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; getnames=no;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. As you can see I had to use getnames=no in the PROC IMPORT, and this cannot be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time, and sorry for the very newbie kind of question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 10:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-change-the-name-and-format-of-PROC-IMPORT-variables/m-p/77456#M656</guid>
      <dc:creator>TurnTheBacon</dc:creator>
      <dc:date>2012-09-26T10:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the name and format of PROC IMPORT variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-change-the-name-and-format-of-PROC-IMPORT-variables/m-p/77457#M657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My preference when importing data files is to use the import wizard first.&amp;nbsp; This rarely creates a dataset in the exact required format, however if you press F4 from within an editor window, it will recall the data step code used by the wizard.&amp;nbsp; It is then a simple matter to edit the formats and variable names to achieve your desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 11:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-change-the-name-and-format-of-PROC-IMPORT-variables/m-p/77457#M657</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-09-26T11:14:40Z</dc:date>
    </item>
  </channel>
</rss>

