<?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: rename and keep in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30772#M7317</link>
    <description>Don't read too much into the diagnostic -- focus on the most basic of coding your PROC SORT statement -- refer to the DOC and you'll see the missing keyword parameter for specifying your "input" (and also optionally the "output") SAS file name.&lt;BR /&gt;
&lt;BR /&gt;
Honestly, this is simple desk-checking work while developing your SAS program -- abandon the macro to start, get some code working, and then decide if/when you need to use the SAS macro language.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Wed, 16 Mar 2011 18:09:09 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2011-03-16T18:09:09Z</dc:date>
    <item>
      <title>rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30766#M7311</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
my code for renaming and keeping the same variable results in only 1 variable, I don't understand why. &lt;BR /&gt;
thank you for your help in advance&lt;BR /&gt;
&lt;BR /&gt;
%macro renam;&lt;BR /&gt;
num_item=7;&lt;BR /&gt;
%do seed=1 %to 2;&lt;BR /&gt;
%do i=1 %to &amp;amp;num_item;&lt;BR /&gt;
%let extra=%eval(7+&amp;amp;i);&lt;BR /&gt;
data studentB&amp;amp;seed; &lt;BR /&gt;
set studentb&amp;amp;seed (keep=question1-question&amp;amp;extra RENAME=(question&amp;amp;i=question&amp;amp;extra));&lt;BR /&gt;
run;&lt;BR /&gt;
%end;&lt;BR /&gt;
%end;&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
this is the error:&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Not all variables in the list question1-question8 were found.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
WARNING: The data set WORK.STUDENTB1 may be incomplete.  When this step was stopped there were&lt;BR /&gt;
         0 observations and 0 variables.&lt;BR /&gt;
WARNING: Data set WORK.STUDENTB1 was not replaced because this step was stopped.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds</description>
      <pubDate>Tue, 15 Mar 2011 22:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30766#M7311</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-03-15T22:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30767#M7312</link>
      <description>Consider that you are reading and writing the same SAS file WORK.STUDENTB1.&lt;BR /&gt;
&lt;BR /&gt;
Where is this macro variable resolved &amp;amp;num_item --  ?&lt;BR /&gt;
&lt;BR /&gt;
How/where is &amp;amp;extra  resolved -- ?&lt;BR /&gt;
&lt;BR /&gt;
Also, did you do a PROC CONTENTS to confirm the SAS variables are present on the input file?&lt;BR /&gt;
&lt;BR /&gt;
You will want to generate more SAS log diagnostic output, showing the macro compilation, mostly to start with your own desk-checking so you can see the code compile and then execute.&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS SOURCE SOURCE2 MACROGEN SYMBOLGEN MPRINT /* MLOGIC */ ;&lt;BR /&gt;
&lt;BR /&gt;
Again, suggest reviewing the logic flow, first without a macro environment -- possibly simply COPY/PASTE two back-to-back DATA steps so you can see the processing.  Also, add in the PROC CONTENTS for checking variables after each DATA step.&lt;BR /&gt;
&lt;BR /&gt;
It's also helpful to know in your original post whether your code is new or it worked previously and now you are making a modification -- with relevant info on any changes, additions, etc.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.

Message was edited by: sbb</description>
      <pubDate>Tue, 15 Mar 2011 23:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30767#M7312</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-03-15T23:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30768#M7313</link>
      <description>I think you may have your loops nested wrong.  Is this closer to what you were looking for:&lt;BR /&gt;
&lt;BR /&gt;
data studentb1;&lt;BR /&gt;
  question1 = 1; question2 = 1; question3 = 1; question4 = 1; question5 = 1; output;&lt;BR /&gt;
run;&lt;BR /&gt;
data studentb2;&lt;BR /&gt;
  question1 = 1; question2 = 1; question3 = 1; question4 = 1; question5 = 1; output;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%macro renam;&lt;BR /&gt;
  %let num_item=5;&lt;BR /&gt;
  %do seed = 1 %to 2;&lt;BR /&gt;
      data studentB&amp;amp;seed; &lt;BR /&gt;
      set studentb&amp;amp;seed (keep=question1-question&amp;amp;num_item &lt;BR /&gt;
              RENAME=(&lt;BR /&gt;
    %do i=1 %to &amp;amp;num_item;&lt;BR /&gt;
        %let extra=%eval(7+&amp;amp;i);&lt;BR /&gt;
        question&amp;amp;i=question&amp;amp;extra&lt;BR /&gt;
    %end;&lt;BR /&gt;
    ));&lt;BR /&gt;
      run;&lt;BR /&gt;
  %end;&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%renam;</description>
      <pubDate>Tue, 15 Mar 2011 23:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30768#M7313</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2011-03-15T23:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30769#M7314</link>
      <description>Hi.&lt;BR /&gt;
I think proc datasets is a better choice.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Wed, 16 Mar 2011 02:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30769#M7314</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-16T02:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30770#M7315</link>
      <description>thank you for the suggestion but Unfortunately non of the suggestions work as well as I wanted.&lt;BR /&gt;
I ended up doing it with a long code but I am sure there is an easier way to do it.&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
RG</description>
      <pubDate>Wed, 16 Mar 2011 17:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30770#M7315</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-03-16T17:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30771#M7316</link>
      <description>When I do this task with the following code, although it generates the data as well as I want to it gives me the following error: why SAS expect one of the following: ;, ASCII,....?&lt;BR /&gt;
&lt;BR /&gt;
ERROR:&lt;BR /&gt;
SYMBOLGEN:  Macro variable SEED resolves to 1&lt;BR /&gt;
NOTE: Line generated by the macro variable "SEED".&lt;BR /&gt;
1     studnetb1&lt;BR /&gt;
      ---------&lt;BR /&gt;
      22&lt;BR /&gt;
      202&lt;BR /&gt;
MPRINT(SIMULATION):   proc sort studnetb1 by studnet_num Run;&lt;BR /&gt;
&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: ;, ASCII, BUFFNO, DANISH, DATA, DATECOPY, DETAILS, DIAG, DUPOUT, EBCDIC, EQUALS, FINNISH, FORCE, IN, ISA, L, LEAVE, LIST, MESSAGE, MSG, NATIONAL, NODUP, NODUPKEY, NODUPKEYS, NODUPLICATE,   NODUPLICATES, NODUPREC, NODUPRECS, NODUPS, NOEQUALS, NORWEGIAN, NOTHREADS, OSA, OUT, OVERWRITE, AGESIZE, PRESORTED, PSIZE, REVERSE, SIZE, SORTSEQ, SORTSIZE, SORTWKNO, SWEDISH, T, TAGSORT, TECH, TECHNIQUE, TESTHSI, THREADS, WKNO, WORKNO.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
CODE:&lt;BR /&gt;
%do i=1 %to &amp;amp;num_item;&lt;BR /&gt;
%let extra=%eval(7+&amp;amp;i);&lt;BR /&gt;
data studentB&amp;amp;seed; &lt;BR /&gt;
set studentb&amp;amp;seed (RENAME=(question&amp;amp;i=question&amp;amp;extra));&lt;BR /&gt;
run;&lt;BR /&gt;
%end;&lt;BR /&gt;
&lt;BR /&gt;
DATA studentc&amp;amp;seed;&lt;BR /&gt;
set studentc&amp;amp;seed (rename=(question1=question15));&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
proc sort studenta&amp;amp;seed by student_num; run;&lt;BR /&gt;
proc sort studnetb&amp;amp;seed by studnet_num; Run;&lt;BR /&gt;
&lt;BR /&gt;
/**************MERGE 3 DATASET TO HAVE 1 DATA W/ 15 ITEMS*********************/&lt;BR /&gt;
&lt;BR /&gt;
DATA student&amp;amp;seed;&lt;BR /&gt;
	MERGE studenta&amp;amp;seed studentb&amp;amp;seed;&lt;BR /&gt;
	BY student_num;&lt;BR /&gt;
	run;</description>
      <pubDate>Wed, 16 Mar 2011 18:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30771#M7316</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-03-16T18:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30772#M7317</link>
      <description>Don't read too much into the diagnostic -- focus on the most basic of coding your PROC SORT statement -- refer to the DOC and you'll see the missing keyword parameter for specifying your "input" (and also optionally the "output") SAS file name.&lt;BR /&gt;
&lt;BR /&gt;
Honestly, this is simple desk-checking work while developing your SAS program -- abandon the macro to start, get some code working, and then decide if/when you need to use the SAS macro language.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 16 Mar 2011 18:09:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30772#M7317</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-03-16T18:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30773#M7318</link>
      <description>You are missing semi-colons needed to properly form your proc sorts.&lt;BR /&gt;
&lt;BR /&gt;
proc sort studenta&amp;amp;seed; by student_num; run;&lt;BR /&gt;
proc sort studnetb&amp;amp;seed; by studnet_num; Run;&lt;BR /&gt;
&lt;BR /&gt;
However, I do agree with SBB&lt;BR /&gt;
&lt;BR /&gt;
Also, this is a really poor way of solving this.  You are recreating the dataset &amp;amp;num_item times. Putting the loop inside the rename statement like I did in my example makes much more sense.

Message was edited by: Curtis Mack</description>
      <pubDate>Wed, 16 Mar 2011 20:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30773#M7318</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2011-03-16T20:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30774#M7319</link>
      <description>Thank you Curtis,&lt;BR /&gt;
&lt;BR /&gt;
I did try your code but for some reason it does not work. I am not using the Macro since my code plus some other codes are all part of a slightly bigger Macro. &lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
RG</description>
      <pubDate>Wed, 16 Mar 2011 23:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30774#M7319</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-03-16T23:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30775#M7320</link>
      <description>Hi.&lt;BR /&gt;
I gave you an example which you can refer to .&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: navy; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;%macro&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt; rename&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;%&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: green; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;*rename variable &lt;SPAN class="GramE"&gt;name&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;proc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt; &lt;SPAN class="SpellE"&gt;sql&lt;/SPAN&gt; feedback;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;SPAN style=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;select&lt;/SPAN&gt; name from&lt;BR /&gt;
&lt;SPAN class="SpellE"&gt;dictionary.columns&lt;/SPAN&gt; where &lt;SPAN class="SpellE"&gt;libname&lt;/SPAN&gt;=&lt;SPAN class="SpellE"&gt;upcase&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: purple; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;"&lt;SPAN class="SpellE"&gt;sashelp&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;)&lt;BR /&gt;
and &lt;SPAN class="SpellE"&gt;memname&lt;/SPAN&gt;=&lt;SPAN class="SpellE"&gt;upcase&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: purple; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;"class"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;);&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;SPAN style=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;select&lt;/SPAN&gt; name &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;into :&lt;/SPAN&gt; name1 -&lt;BR /&gt;
: &lt;SPAN class="SpellE"&gt;name&amp;amp;&lt;SPAN style="color: teal;"&gt;sqlobs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: teal; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;SPAN style=""&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;from&lt;/SPAN&gt; &lt;SPAN class="SpellE"&gt;dictionary.columns&lt;/SPAN&gt; where &lt;SPAN class="SpellE"&gt;libname&lt;/SPAN&gt;=&lt;SPAN class="SpellE"&gt;upcase&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: purple; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;"&lt;SPAN class="SpellE"&gt;sashelp&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;)&lt;BR /&gt;
and &lt;SPAN class="SpellE"&gt;memname&lt;/SPAN&gt;=&lt;SPAN class="SpellE"&gt;upcase&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: purple; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;"class"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;);&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;quit&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;proc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt; datasets&lt;BR /&gt;
library=&lt;SPAN class="SpellE"&gt;sashelp&lt;/SPAN&gt; &lt;SPAN class="SpellE"&gt;memtype&lt;/SPAN&gt;=data&lt;BR /&gt;
&lt;SPAN class="SpellE"&gt;nolist&lt;/SPAN&gt;; &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;SPAN style=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;modify&lt;/SPAN&gt; &amp;amp;&lt;SPAN class="SpellE"&gt;right_dsn&lt;/SPAN&gt;;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;rename&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt; &lt;SPAN class="SpellE"&gt;i&lt;/SPAN&gt;=&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: teal; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;1&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;%to&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt; &amp;amp;&lt;SPAN class="SpellE"&gt;sqlobs&lt;/SPAN&gt;;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;SPAN style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
&lt;BR /&gt;
&lt;/SPAN&gt;&amp;amp;&amp;amp;&lt;SPAN class="SpellE"&gt;name&amp;amp;i&lt;/SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&amp;amp;&amp;amp;&lt;SPAN class="SpellE"&gt;name&amp;amp;i&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;SPAN style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;&lt;SPAN style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
&lt;/SPAN&gt;;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;quit&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left;" align="left"&gt;&lt;B&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: navy; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;%mend&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN lang="EN-US"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black; background: none repeat scroll 0% 0% white;" lang="EN-US"&gt;%&lt;SPAN class="GramE"&gt;&lt;B&gt;&lt;I&gt;rename&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp&lt;BR /&gt;
[/pre]&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2011 02:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30775#M7320</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-17T02:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: rename and keep</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30776#M7321</link>
      <description>Thank you KSharp&lt;BR /&gt;
&lt;BR /&gt;
WOW! this is very complicated specially for a beginner like me. I first have to interpret the code to be able to use it. But thank you this is great it helps me learn more complicated codes.&lt;BR /&gt;
RG</description>
      <pubDate>Thu, 17 Mar 2011 02:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-and-keep/m-p/30776#M7321</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-03-17T02:57:36Z</dc:date>
    </item>
  </channel>
</rss>

