<?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: Help needed in PROC PDSCOPY in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13827#M2060</link>
    <description>Yes you can. &lt;BR /&gt;
&lt;BR /&gt;
To pass the selection criteria via a file, you would need to use %INCLUDE to reference an input file and code the statement between a SELECT statement and a trailing statement with a semi-colon, as in:&lt;BR /&gt;
&lt;BR /&gt;
FILENAME input "_your_input_selection_list" ;&lt;BR /&gt;
PROC PDSCOPY ....;&lt;BR /&gt;
SELECT&lt;BR /&gt;
%INCLUDE input;&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Thu, 16 Jun 2011 13:27:51 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2011-06-16T13:27:51Z</dc:date>
    <item>
      <title>Help needed in PROC PDSCOPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13821#M2054</link>
      <description>Hi ,&lt;BR /&gt;
&lt;BR /&gt;
When i run the below code am getting the following error message &lt;BR /&gt;
ERROR 200-322: The symbol is not recognized and will be ignored.  &lt;BR /&gt;
                                                                  &lt;BR /&gt;
ERROR 22-322: Expecting a name.                                   &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Code:&lt;BR /&gt;
filename xx'xo94.control.userview' disp=shr;  &lt;BR /&gt;
filename yy'xo94.control.user' disp=old;      &lt;BR /&gt;
data siva;                                    &lt;BR /&gt;
input id $;                                   &lt;BR /&gt;
cards;                                        &lt;BR /&gt;
srgm2010                                      &lt;BR /&gt;
srgm2001                                      &lt;BR /&gt;
;                                             &lt;BR /&gt;
proc pdscopy indd=xx outdd=yy;                &lt;BR /&gt;
select "id @1";                               &lt;BR /&gt;
run;                                          &lt;BR /&gt;
&lt;BR /&gt;
Could you please help me to resolve this..</description>
      <pubDate>Wed, 15 Jun 2011 05:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13821#M2054</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2011-06-15T05:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in PROC PDSCOPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13822#M2055</link>
      <description>You don't need to quote the member name. Remove the quotes around the member name id@1 and resubmit the code. It should work&lt;BR /&gt;
&lt;BR /&gt;
proc pdscopy indd=xx outdd=yy;&lt;BR /&gt;
select id @1;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 15 Jun 2011 12:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13822#M2055</guid>
      <dc:creator>SushilNayak</dc:creator>
      <dc:date>2011-06-15T12:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in PROC PDSCOPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13823#M2056</link>
      <description>The OP is wishing to generate the SELECT statement dynamically using a SAS file which is not properly supported.&lt;BR /&gt;
&lt;BR /&gt;
One alternative is to read up the member list, generate a SAS macro variable and then reference that variable as the SELECT statement data value.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 15 Jun 2011 13:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13823#M2056</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-06-15T13:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in PROC PDSCOPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13824#M2057</link>
      <description>Sushi,&lt;BR /&gt;
&lt;BR /&gt;
It will not work because select statement will consider ID as a member and it will search in the PDS.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Siva.</description>
      <pubDate>Thu, 16 Jun 2011 04:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13824#M2057</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2011-06-16T04:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in PROC PDSCOPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13825#M2058</link>
      <description>Scott,&lt;BR /&gt;
I tried with the follwoing code with MACRO its working fine &lt;BR /&gt;
&lt;BR /&gt;
%let id=SRGM2001 SRGM20002;&lt;BR /&gt;
&lt;BR /&gt;
filename xx'xo94.control.userview' disp=shr; &lt;BR /&gt;
filename yy'xo94.control.user' disp=old; &lt;BR /&gt;
data siva; &lt;BR /&gt;
proc pdscopy indd=xx outdd=yy; &lt;BR /&gt;
select &amp;amp;id; &lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
is it possible to pass the input members via the file.</description>
      <pubDate>Thu, 16 Jun 2011 10:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13825#M2058</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2011-06-16T10:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in PROC PDSCOPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13826#M2059</link>
      <description>I'm really sorry..i misunderstood your question...i thought u were selecting member ID@1 instead of ID &amp;amp; @1 ..my bad..Anyhow it seems you fixed the issue...for the getting members name within the macro variable. use PROS SQL&lt;BR /&gt;
&lt;BR /&gt;
filename xx'xo94.control.userview' disp=shr;&lt;BR /&gt;
filename yy'xo94.control.user' disp=old;&lt;BR /&gt;
&lt;BR /&gt;
data siva;&lt;BR /&gt;
input id $;&lt;BR /&gt;
cards;&lt;BR /&gt;
srgm2010&lt;BR /&gt;
srgm2001&lt;BR /&gt;
; &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
select id into : memlist separated by ' '&lt;BR /&gt;
from siva;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
proc pdscopy indd=xx outdd=yy;&lt;BR /&gt;
select &amp;amp;memlist;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 16 Jun 2011 11:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13826#M2059</guid>
      <dc:creator>SushilNayak</dc:creator>
      <dc:date>2011-06-16T11:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in PROC PDSCOPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13827#M2060</link>
      <description>Yes you can. &lt;BR /&gt;
&lt;BR /&gt;
To pass the selection criteria via a file, you would need to use %INCLUDE to reference an input file and code the statement between a SELECT statement and a trailing statement with a semi-colon, as in:&lt;BR /&gt;
&lt;BR /&gt;
FILENAME input "_your_input_selection_list" ;&lt;BR /&gt;
PROC PDSCOPY ....;&lt;BR /&gt;
SELECT&lt;BR /&gt;
%INCLUDE input;&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 16 Jun 2011 13:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13827#M2060</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-06-16T13:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in PROC PDSCOPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13828#M2061</link>
      <description>Thanks for all.&lt;BR /&gt;
Both the mentod are working fine.</description>
      <pubDate>Thu, 16 Jun 2011 14:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-needed-in-PROC-PDSCOPY/m-p/13828#M2061</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2011-06-16T14:07:03Z</dc:date>
    </item>
  </channel>
</rss>

