<?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: To rename the PDS members in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15021#M2575</link>
    <description>Okay - so it's a similar situation as your other post / thread at this link:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=14667" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=14667&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Use a SAS DATA step to generate your "PROC PDS" procedure CHANGE statement parameters out to a FILENAME-allocated temporary file, and then %INCLUDE the "fileref".&lt;BR /&gt;
&lt;BR /&gt;
Note, the PROC PDS would execute after you execute the PROC PDSCOPY, since PDSCOPY does not support a similar CHANGE statement.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Thu, 16 Jun 2011 14:35:34 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2011-06-16T14:35:34Z</dc:date>
    <item>
      <title>To rename the PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15018#M2572</link>
      <description>I have list of PDS members(old named) as below &lt;BR /&gt;
&lt;BR /&gt;
Oldname Newname&lt;BR /&gt;
2005       2344&lt;BR /&gt;
3453       4353 &lt;BR /&gt;
5336       6788&lt;BR /&gt;
&lt;BR /&gt;
I need to replace all the oldname members into a new name which is mentioned above .how i can achieve it?&lt;BR /&gt;
&lt;BR /&gt;
using change statement i can do it for each member one by one manually.&lt;BR /&gt;
&lt;BR /&gt;
But i need to make automatically change all the old names in to corresponding new name .&lt;BR /&gt;
Couold you please help me to resolve this.</description>
      <pubDate>Thu, 16 Jun 2011 10:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15018#M2572</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2011-06-16T10:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: To rename the PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15019#M2573</link>
      <description>What is meant by "automatically" -- you have a list of &lt;OLD&gt; and &lt;NEW&gt; member names in your post -- is that not what is available to your SAS application?  If not and you want to "automate" (using SAS programming logic and your own naming methodology) the &lt;NEW&gt; member names, then you can use the DATA step to create the &lt;NEW_MEMBER&gt; value using SAS IF &lt;EXPRESSION&gt; THEN &lt;ASSIGNMENT&gt;;  statements, as required.&lt;BR /&gt;
&lt;BR /&gt;
Then with these values, you can generate the CHANGE statement parameters and output the information either to a SAS macro (mind the length limitation), or create a temporary sequential file and then use %INCLUDE (after a suitable FILENAME invocation for your file).&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/ASSIGNMENT&gt;&lt;/EXPRESSION&gt;&lt;/NEW_MEMBER&gt;&lt;/NEW&gt;&lt;/NEW&gt;&lt;/OLD&gt;</description>
      <pubDate>Thu, 16 Jun 2011 13:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15019#M2573</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-06-16T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: To rename the PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15020#M2574</link>
      <description>Apologies forr the confusion.I need to change all  the members which are in oldname in a pds to a new name ..This is my exact requirement.&lt;BR /&gt;
The oldname and the newname members are given in preivious post.</description>
      <pubDate>Thu, 16 Jun 2011 14:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15020#M2574</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2011-06-16T14:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: To rename the PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15021#M2575</link>
      <description>Okay - so it's a similar situation as your other post / thread at this link:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=14667" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=14667&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Use a SAS DATA step to generate your "PROC PDS" procedure CHANGE statement parameters out to a FILENAME-allocated temporary file, and then %INCLUDE the "fileref".&lt;BR /&gt;
&lt;BR /&gt;
Note, the PROC PDS would execute after you execute the PROC PDSCOPY, since PDSCOPY does not support a similar CHANGE statement.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 16 Jun 2011 14:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15021#M2575</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-06-16T14:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: To rename the PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15022#M2576</link>
      <description>Hi Scott,&lt;BR /&gt;
I tried the below code  but am getting the following error&lt;BR /&gt;
63   change %include zz=%include ss;                                        &lt;BR /&gt;
ERROR: Incorrect %INCLUDE statement will not be executed. There is a syntax &lt;BR /&gt;
                                                               &lt;BR /&gt;
ERROR 22-322: Expecting a name.                                             &lt;BR /&gt;
                                                                            &lt;BR /&gt;
ERROR 76-322: Syntax error, statement will be ignored.    &lt;BR /&gt;
&lt;BR /&gt;
Code:                                                                                           &lt;BR /&gt;
&lt;BR /&gt;
filename yy'xo94.control.user' disp=old;&lt;BR /&gt;
filename zz'xo94.output.process1';      &lt;BR /&gt;
filename ss'xo94.output.process2';      &lt;BR /&gt;
data siva;                              &lt;BR /&gt;
proc pds ddname=yy;                     &lt;BR /&gt;
change %include zz=%include ss;         &lt;BR /&gt;
;                                       &lt;BR /&gt;
run;      &lt;BR /&gt;
&lt;BR /&gt;
Thank,&lt;BR /&gt;
Siva.</description>
      <pubDate>Thu, 16 Jun 2011 15:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15022#M2576</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2011-06-16T15:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: To rename the PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15023#M2577</link>
      <description>Your INCLUDE file needs to provide all CHANGE statement parameters as shown in the prior thread - repeated here:&lt;BR /&gt;
&lt;BR /&gt;
CHANGE&lt;BR /&gt;
%INCLUDE &lt;FILEREF&gt;;&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
Your input file must have syntactically valid CHANGE statement parameters for the members you wish to rename, supplying (to be generated by your DATA step logic):&lt;BR /&gt;
&lt;BR /&gt;
&lt;OLD_MEMBER1&gt; = &lt;NEW_MEMBER1&gt;&lt;BR /&gt;
&lt;OLD_MEMBER2&gt; = &lt;NEW_MEMBER2&gt;&lt;BR /&gt;
&lt;OLD_MEMBER3&gt; = &lt;NEW_MEMBER3&gt;&lt;BR /&gt;
&lt;BR /&gt;
So, you will have two files, one for the PROC PDSCOPY if you need a SELECT statement to copy a subset list of PDS members.  And then another input file which contains the CHANGE statement parameters.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/NEW_MEMBER3&gt;&lt;/OLD_MEMBER3&gt;&lt;/NEW_MEMBER2&gt;&lt;/OLD_MEMBER2&gt;&lt;/NEW_MEMBER1&gt;&lt;/OLD_MEMBER1&gt;&lt;/FILEREF&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15023#M2577</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-06-16T15:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: To rename the PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15024#M2578</link>
      <description>Hi Scott,&lt;BR /&gt;
&lt;BR /&gt;
Thanks very much for you valuable suggestions.its working fine.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Siva.</description>
      <pubDate>Tue, 21 Jun 2011 04:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/To-rename-the-PDS-members/m-p/15024#M2578</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2011-06-21T04:56:19Z</dc:date>
    </item>
  </channel>
</rss>

