<?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: Getting Errors 22-322 and 201-322 using copy procedure in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Getting-Errors-22-322-and-201-322-using-copy-procedure/m-p/216317#M53237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy will copy from the libraries, the in/out should only have library names. I don't know if you can rename the file using proc copy though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc copy in=sashelp out=work;&lt;/P&gt;&lt;P&gt;select class;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Apr 2015 22:56:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-04-04T22:56:50Z</dc:date>
    <item>
      <title>Getting Errors 22-322 and 201-322 using copy procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-Errors-22-322-and-201-322-using-copy-procedure/m-p/216314#M53234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="sasSource" style="color: #000000;"&gt;Hi.&amp;nbsp; I'm just starting out learning SAS Studio on SAS University Edition.&amp;nbsp; I'm trying to copy a table, sashelp.class, into a new file called work.classname.&amp;nbsp; When I run it, I get the errors below.&amp;nbsp; A new file called classname is created in my work folder but I can't open it because it doesn't contain any columns (I get an error message on it).&amp;nbsp; Any thoughts on how to correct this?&amp;nbsp; And is there an easier way to make a copy of an existing file?&amp;nbsp; Thanks.&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt;data work.classname;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt;proc copy in=sashelp.class out=work.classname;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt;run;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 42 ;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 43 data work.classname;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote1_1428183551941" style="color: #0000ff;"&gt; NOTE: The data set WORK.CLASSNAME has 1 observations and 0 variables.&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote2_1428183551941" style="color: #0000ff;"&gt; NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P class="sasNote" style="color: #0000ff;"&gt;&amp;nbsp; real time 0.00 seconds&lt;/P&gt;&lt;P class="sasNote" style="color: #0000ff;"&gt;&amp;nbsp; cpu time 0.00 seconds&lt;/P&gt;&lt;P class="sasNote" style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 44 proc copy in=sashelp.class out=work.classname;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; _____________&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 22&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 201&lt;/P&gt;&lt;P class="sasError" id="sasLogError1_1428183551941" style="color: #ff0000;"&gt; ERROR 22-322: Expecting a name.&amp;nbsp; &lt;/P&gt;&lt;P class="sasError" id="sasLogError2_1428183551941" style="color: #ff0000;"&gt; ERROR 201-322: The option is not recognized and will be ignored.&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 45 run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 22:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-Errors-22-322-and-201-322-using-copy-procedure/m-p/216314#M53234</guid>
      <dc:creator>DaveOrland</dc:creator>
      <dc:date>2015-04-04T22:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Errors 22-322 and 201-322 using copy procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-Errors-22-322-and-201-322-using-copy-procedure/m-p/216315#M53235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You only need part of the code above, either of the code below will create the classname file. &lt;/P&gt;&lt;P&gt;The first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="sasSource" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;data work.classname;&lt;/P&gt;&lt;P class="sasSource" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;set sashelp.class;&lt;/P&gt;&lt;P class="sasSource" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;run;&lt;/P&gt;&lt;P class="sasSource" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P class="sasSource" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;OR &lt;/P&gt;&lt;P class="sasSource" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P class="sasSource" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;proc copy in=sashelp.class out=work.classname;&lt;/P&gt;&lt;P class="sasSource" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 22:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-Errors-22-322-and-201-322-using-copy-procedure/m-p/216315#M53235</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-04T22:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Errors 22-322 and 201-322 using copy procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-Errors-22-322-and-201-322-using-copy-procedure/m-p/216316#M53236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;Thanks so much for helping me out.&lt;/P&gt;&lt;P&gt;The first solution using the data and set statements works.&lt;/P&gt;&lt;P&gt;The second solution using copy still gives me the error statements.&lt;/P&gt;&lt;P&gt;Regardless, I only need one that works.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;- Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 22:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-Errors-22-322-and-201-322-using-copy-procedure/m-p/216316#M53236</guid>
      <dc:creator>DaveOrland</dc:creator>
      <dc:date>2015-04-04T22:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Errors 22-322 and 201-322 using copy procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-Errors-22-322-and-201-322-using-copy-procedure/m-p/216317#M53237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy will copy from the libraries, the in/out should only have library names. I don't know if you can rename the file using proc copy though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc copy in=sashelp out=work;&lt;/P&gt;&lt;P&gt;select class;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 22:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-Errors-22-322-and-201-322-using-copy-procedure/m-p/216317#M53237</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-04T22:56:50Z</dc:date>
    </item>
  </channel>
</rss>

