<?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: Removing labels using from proc datasets for many files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-labels-using-from-proc-datasets-for-many-files/m-p/409488#M100048</link>
    <description>&lt;P&gt;You need slightly more:&lt;/P&gt;
&lt;PRE&gt;data have1;
  set sashelp.class;
run;
data have2;
  set sashelp.cars;
run;

data _null_;
  set sashelp.vtable (where=(libname="WORK"));
  call execute('proc datasets library=work nolist; modify '||strip(memname)||"; attrib _all_ label=''; run;");
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Nov 2017 14:52:42 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-11-01T14:52:42Z</dc:date>
    <item>
      <title>Removing labels using from proc datasets for many files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-labels-using-from-proc-datasets-for-many-files/m-p/409482#M100047</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have&amp;nbsp;many files (file1, file2, ...) in my work directory and I executed this command to remove the labels from all the files:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Verdana" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Verdana" size="3"&gt;datasets&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Verdana" size="3"&gt;library&lt;/FONT&gt;&lt;FONT face="Verdana" size="3"&gt;=work &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Verdana" size="3"&gt;memtype&lt;/FONT&gt;&lt;FONT face="Verdana" size="3"&gt;=data; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Verdana" size="3"&gt;modify&lt;/FONT&gt;&lt;FONT face="Verdana" size="3"&gt; file: ; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Verdana" size="3"&gt;attrib&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Verdana" size="3"&gt;_all_&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Verdana" size="3"&gt;label&lt;/FONT&gt;&lt;FONT face="Verdana" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Verdana" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Verdana" size="3"&gt;; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Verdana" size="3"&gt;quit&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Verdana" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but I got an error:&lt;/P&gt;
&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, /.&lt;/P&gt;
&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So is there a &amp;nbsp;way to remove the labels from all the files of the library with 1 line of code ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(the command works for one file though)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 14:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-labels-using-from-proc-datasets-for-many-files/m-p/409482#M100047</guid>
      <dc:creator>nketata</dc:creator>
      <dc:date>2017-11-01T14:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Removing labels using from proc datasets for many files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-labels-using-from-proc-datasets-for-many-files/m-p/409488#M100048</link>
      <description>&lt;P&gt;You need slightly more:&lt;/P&gt;
&lt;PRE&gt;data have1;
  set sashelp.class;
run;
data have2;
  set sashelp.cars;
run;

data _null_;
  set sashelp.vtable (where=(libname="WORK"));
  call execute('proc datasets library=work nolist; modify '||strip(memname)||"; attrib _all_ label=''; run;");
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Nov 2017 14:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-labels-using-from-proc-datasets-for-many-files/m-p/409488#M100048</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-01T14:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removing labels using from proc datasets for many files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-labels-using-from-proc-datasets-for-many-files/m-p/409492#M100049</link>
      <description>&lt;P&gt;Post code &lt;STRONG&gt;and&lt;/STRONG&gt; the error message from the log into a code box opened with the forum {I} menu icon.&lt;/P&gt;
&lt;P&gt;The error message you show would have an underscore _ character under the position with the error such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;97   proc datasets library=work memtype=data;
NOTE: Writing HTML Body file: sashtml1.htm
98      modify file: ;
                   -
                   22
                   200
NOTE: Enter RUN; to continue or QUIT; to end the procedure.
ERROR 22-322: Syntax error, expecting one of the following: ;, (, /.
ERROR 200-322: The symbol is not recognized and will be ignored.
99      attrib _all_ label="";
100  quit;
&lt;/PRE&gt;
&lt;P&gt;The main message windows will reformat text and you would not be able to tell that the : character is not allowed in that position.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 15:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-labels-using-from-proc-datasets-for-many-files/m-p/409492#M100049</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-01T15:02:51Z</dc:date>
    </item>
  </channel>
</rss>

