<?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: import data and naming the variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87038#M24869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the last code code but for some reason it's giving me this error:&lt;/P&gt;&lt;P&gt;2104&amp;nbsp; Proc import file="C:\Users\Roofia\Desktop\DATA\try.xls" out=IEEE.data dbms=excel replace;&lt;/P&gt;&lt;P&gt;ERROR: DBMS type EXCEL not valid for import.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 17:10:07 GMT</pubDate>
    <dc:creator>R_A_G_</dc:creator>
    <dc:date>2012-10-05T17:10:07Z</dc:date>
    <item>
      <title>import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87033#M24864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set that I would like to import and name the variables.&lt;/P&gt;&lt;P&gt;This code works but don't know how to name them&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc import file="C:\try.xls" out=data dbm=xls replace;&lt;/P&gt;&lt;P&gt;startrow=1;&lt;/P&gt;&lt;P&gt;getnames=no;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 13:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87033#M24864</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-05T13:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87034#M24865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could follow your import with a datastep that uses either the rename option (in the set statement) or the rename statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 14:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87034#M24865</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-05T14:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87035#M24866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I don't have any names for my variables to rename.&lt;/P&gt;&lt;P&gt;the first variable has to be named people and the rest item1-item116&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 14:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87035#M24866</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-05T14:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87036#M24867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those ARE names.&amp;nbsp; How about something like?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rename col1=people&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; col2-col117=item1-item116;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 14:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87036#M24867</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-05T14:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87037#M24868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just noticed that you used the xls engine.&amp;nbsp; That produces names like A, B, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the Excel engine instead, you will get names like F1-F117.&amp;nbsp; Then you could use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc import file="C:\try.xls" out=data dbms=excel replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp; getnames=no;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rename f1=people&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2-f117=item1-item116;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 15:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87037#M24868</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-05T15:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87038#M24869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the last code code but for some reason it's giving me this error:&lt;/P&gt;&lt;P&gt;2104&amp;nbsp; Proc import file="C:\Users\Roofia\Desktop\DATA\try.xls" out=IEEE.data dbms=excel replace;&lt;/P&gt;&lt;P&gt;ERROR: DBMS type EXCEL not valid for import.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 17:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87038#M24869</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-05T17:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87039#M24870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also this one does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data new;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; rename col1=CE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; col2-col117=item1-item116;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;WARNING: The variable col1 in the DROP, KEEP, or RENAME list has never been referenced.&lt;/P&gt;&lt;P&gt;WARNING: Not all variable names in the RENAME list col2-col117 were used.&lt;/P&gt;&lt;P&gt;NOTE: There were 96 observations read from the data set DATA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 17:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87039#M24870</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-05T17:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87040#M24871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know why you can't use excel engine, but there are always alternatives.&amp;nbsp; How about?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc import file="C:\try.xls" out=data dbms=xls replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp; getnames=no;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (drop=b--dq);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array data_in(*) b--dq;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array item(116);&lt;/P&gt;&lt;P&gt;&amp;nbsp; rename a=people;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=1 to 116;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item(i)=data_in(i);&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 19:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87040#M24871</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-05T19:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87041#M24872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it worked,&lt;/P&gt;&lt;P&gt;except that I had to rename and label it to people as well.&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 20:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87041#M24872</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-05T20:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87042#M24873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, the label(s).&amp;nbsp; You could have accomplished both, I think, with just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;data want (keep=people item:);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; set data;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; array data_in(*) a--dq;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; array item(116);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; people=data_in(1);;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; do i=1 to 116;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item(i)=data_in(i-1);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/140410/edit" style="font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 21:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87042#M24873</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-05T21:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87043#M24874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just skip the PROC IMPORT?&amp;nbsp; Save the XLS files as a CSV file and then just read it with a data step where you get to define the names?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile 'myfile.csv' dsd dlm=',' truncover lrecl=30000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input people col1-col116;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 23:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87043#M24874</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-05T23:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87044#M24875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot figure out why but this new code does not work&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;P&gt; data want (keep=people item:);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; set data;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; array data_in(*) a--dq;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; array item(116);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; people=data_in(1);;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; do i=1 to 116;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item(i)=data_in(i-1);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;run;&lt;/P&gt;&lt;P&gt;ERROR: All variables in array list must be the same type, i.e., all numeric or character.&lt;/P&gt;&lt;P&gt;ERROR: All variables in array list must be the same type, i.e., all numeric or character&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead I just&amp;nbsp; added this( rename A=people; label A=people) did this and worked except...:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have another problem on my hand now.&lt;/P&gt;&lt;P&gt;after renaming the data I've noticed that one of the variables' value,"item 8 " is recorded as "8" not its real value. why is that?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 18:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87044#M24875</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-06T18:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87045#M24876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My latest suggestion didn't work because, apparently, imported variable A is character, while the others are either numeric or mixed.&amp;nbsp; What code did you use that is giving you your latest incorrect value and what did your log show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 18:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87045#M24876</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-06T18:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87046#M24877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for letting me know about the last problem.&lt;/P&gt;&lt;P&gt;my code is:&lt;/P&gt;&lt;P&gt;data new (drop=b--dm); &lt;/P&gt;&lt;P&gt;&amp;nbsp; set old;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rename A=people;&lt;/P&gt;&lt;P&gt;&amp;nbsp; label A=people;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array data_in(*) b--dm;&lt;/P&gt;&lt;P&gt;array item(116);&lt;/P&gt;&lt;P&gt;do i=1 to 116;&lt;/P&gt;&lt;P&gt;item(i)=data_in(i);&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as for the log there is no sign of problems&lt;/P&gt;&lt;P&gt;LOG:&lt;/P&gt;&lt;P&gt;140&amp;nbsp; data new (drop=b--dm);&lt;/P&gt;&lt;P&gt;141&lt;/P&gt;&lt;P&gt;142&amp;nbsp;&amp;nbsp;&amp;nbsp; set old;&lt;/P&gt;&lt;P&gt;143&lt;/P&gt;&lt;P&gt;144&amp;nbsp;&amp;nbsp;&amp;nbsp; rename A=people;&lt;/P&gt;&lt;P&gt;145&lt;/P&gt;&lt;P&gt;146&amp;nbsp;&amp;nbsp;&amp;nbsp; label A=people;&lt;/P&gt;&lt;P&gt;147&lt;/P&gt;&lt;P&gt;148&amp;nbsp;&amp;nbsp;&amp;nbsp; array data_in(*) b--dm;&lt;/P&gt;&lt;P&gt;149&lt;/P&gt;&lt;P&gt;150&amp;nbsp; array item(116);&lt;/P&gt;&lt;P&gt;151&lt;/P&gt;&lt;P&gt;152&amp;nbsp; do i=1 to 116;&lt;/P&gt;&lt;P&gt;153&lt;/P&gt;&lt;P&gt;154&amp;nbsp; item(i)=data_in(i);&lt;/P&gt;&lt;P&gt;155&lt;/P&gt;&lt;P&gt;156&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;157&lt;/P&gt;&lt;P&gt;158&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 96 observations read from the data set WORK.OLD.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.NEW has 96 observations and 117 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 19:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87046#M24877</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-06T19:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87047#M24878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two variables labled "i".&amp;nbsp; Change your loop from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; do i=1 to 116;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;do iii=1 to 116;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;and be sure to include iii in your drop list&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 19:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87047#M24878</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-06T19:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87048#M24879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it worked but why?&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 19:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87048#M24879</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-06T19:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87049#M24880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of your variables was called "i" and I, without thinking, had suggested using "i" in the do loop.&amp;nbsp; As such, the loop was re-assigning the value of that variable (i.e., the eighth variable).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 19:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87049#M24880</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-06T19:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87050#M24881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious to know why iii fixed the problem&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 21:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87050#M24881</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-06T21:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87051#M24882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks didn't see the reply, please ignore the last question &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 21:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87051#M24882</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-06T21:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: import data and naming the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87052#M24883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or a faster way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;Proc import out=data datafile="C:\temp\x.xls"&amp;nbsp; dbms=xls replace;
&amp;nbsp; getnames=no;
run;

data _null_;
 set sashelp.vcolumn(keep=libname memname name where=(libname='WORK' and memname='DATA')) end=last ;
 if _n_ eq 1 then call execute('proc datasets library=work nolist;modify data; rename a=people ');
&amp;nbsp; else call execute(cats(name,'=col',_n_-1));
 if last then call execute(';quit;');
run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 01:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-data-and-naming-the-variable/m-p/87052#M24883</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-10-08T01:58:35Z</dc:date>
    </item>
  </channel>
</rss>

