<?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: PROC COPY Not Working in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437679#M69036</link>
    <description>&lt;P&gt;Please re-read my original response or run the code included in the example in my previous response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/149362"&gt;@Fistful_Dollars&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you.&amp;nbsp; So how do I copy an entire work/temp table into a new table in my permanent folder?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;IN/OUT are to specify the library. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The data set name is specified in the SELECT statement.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 15 Feb 2018 16:29:52 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-15T16:29:52Z</dc:date>
    <item>
      <title>PROC COPY Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437663#M69031</link>
      <description>&lt;P&gt;I run:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy inlib=WORK.TABLE1 outlib=SAVEDREPORTS.TABLE1 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get these errors when I run the PROC COPY under the WORK.TABLE1 part of the code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR 22-322: Expecting a name.  
ERROR 201-322: The option is not recognized and will be ignored.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437663#M69031</guid>
      <dc:creator>Fistful_Dollars</dc:creator>
      <dc:date>2018-02-15T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437666#M69032</link>
      <description>&lt;P&gt;IN/OUT are to specify the library. The data set name is specified in the SELECT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy in=work out=random;
select myData;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See the docs for usage examples if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/149362"&gt;@Fistful_Dollars&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I run:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy inlib=WORK.TABLE1 outlib=SAVEDREPORTS.TABLE1 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get these errors when I run the PROC COPY under the WORK.TABLE1 part of the code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR 22-322: Expecting a name.  
ERROR 201-322: The option is not recognized and will be ignored.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437666#M69032</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-15T16:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437668#M69033</link>
      <description>&lt;P&gt;The &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473400.htm" target="_self"&gt;docs show&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy in=insource out=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My code looks fine in my opinion.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437668#M69033</guid>
      <dc:creator>Fistful_Dollars</dc:creator>
      <dc:date>2018-02-15T16:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437672#M69034</link>
      <description>&lt;P&gt;The documentation, from your link, also specifies that they're LIBRARY names, not data set references as you've done.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1959  proc copy in=sashelp out=work;
1960  select class;
1961  run;

NOTE: Copying SASHELP.CLASS to WORK.CLASS (memtype=DATA).
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.CLASS has 19 observations and 5 variables.
NOTE: PROCEDURE COPY used (Total process time):
      real time           0.06 seconds
      cpu time            0.03 seconds


1962
1963  proc copy in=sashelp.class out=work.class;
                   -------------
                   22
                   201
ERROR 22-322: Expecting a name.
ERROR 201-322: The option is not recognized and will be ignored.
1964  run;

NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE COPY used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete_proc_copy.JPG" style="width: 492px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18621i184FB1AA4F33345C/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete_proc_copy.JPG" alt="delete_proc_copy.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/149362"&gt;@Fistful_Dollars&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473400.htm" target="_self"&gt;docs show&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy in=insource out=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My code looks fine in my opinion.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437672#M69034</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-15T16:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437676#M69035</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; So how do I copy an entire work/temp table into a new table in my permanent folder?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437676#M69035</guid>
      <dc:creator>Fistful_Dollars</dc:creator>
      <dc:date>2018-02-15T16:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437679#M69036</link>
      <description>&lt;P&gt;Please re-read my original response or run the code included in the example in my previous response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/149362"&gt;@Fistful_Dollars&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you.&amp;nbsp; So how do I copy an entire work/temp table into a new table in my permanent folder?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;IN/OUT are to specify the library. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The data set name is specified in the SELECT statement.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437679#M69036</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-15T16:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437687#M69038</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp; Now I get:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: The file WORK.TABLE1 (memtype=ALL) was not found, but appears on a SELECT statement.
ERROR: The file WORK.RUN (memtype=ALL) was not found, but appears on a SELECT statement.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you for all your help.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437687#M69038</guid>
      <dc:creator>Fistful_Dollars</dc:creator>
      <dc:date>2018-02-15T16:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437698#M69042</link>
      <description>&lt;P&gt;Did you include the libname portions in the SELECT statement or just the data set names?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/149362"&gt;@Fistful_Dollars&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp; Now I get:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: The file WORK.TABLE1 (memtype=ALL) was not found, but appears on a SELECT statement.
ERROR: The file WORK.RUN (memtype=ALL) was not found, but appears on a SELECT statement.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you for all your help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 17:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/437698#M69042</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-15T17:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/439492#M69140</link>
      <description>&lt;P&gt;I think the error had to do with me copying the process flow to a new process flow.&amp;nbsp; So the original "work" data was in the other process flow or SAS though it was; so it couldn't find it.&amp;nbsp; Anyway, I just ended up redoing the queries to create permanent data sets.&amp;nbsp; Thank you everyone for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 22:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-Not-Working/m-p/439492#M69140</guid>
      <dc:creator>Fistful_Dollars</dc:creator>
      <dc:date>2018-02-22T22:03:25Z</dc:date>
    </item>
  </channel>
</rss>

