<?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: Can't delete a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824719#M325709</link>
    <description>&lt;P&gt;Change the system option that is causing the missing format to be treated as an ERROR.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nofmterr;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can use the dataset.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 16:28:25 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-07-21T16:28:25Z</dc:date>
    <item>
      <title>Can't delete a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824716#M325707</link>
      <description>&lt;P&gt;I imported a JMP file with a variable that has some formatting SAS doesn't like. I can't change the formatting because I can't read the file to see what the problem is&amp;nbsp; (see log in italics below), and it won't delete because of the formatting problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable is unnecessary. I just want to get rid of it. Is there a workaround? Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;38 PROC PRINT data=monseau.control_ALL;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;39 run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR: Format SCAN_QUA not found or couldn't be loaded for variable&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Scan_Quality4___L_eye_not_so_goo.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;real time 0.00 seconds&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;cpu time 0.00 seconds&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;40 DATA monseau.control_ALL;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;41 DROP Scan_Quality4___L_eye_not_so_goo;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;42 SET monseau.control_ALL;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;43 RUN;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR: The format SCAN_QUA was not found or could not be loaded.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 16:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824716#M325707</guid>
      <dc:creator>newtriks</dc:creator>
      <dc:date>2022-07-21T16:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824719#M325709</link>
      <description>&lt;P&gt;Change the system option that is causing the missing format to be treated as an ERROR.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nofmterr;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can use the dataset.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 16:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824719#M325709</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-21T16:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824720#M325710</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nofmterr;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Add the following option before your code and it will remove the format if it's not found so you'll see the underlying value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 16:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824720#M325710</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-21T16:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824725#M325714</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 16:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824725#M325714</guid>
      <dc:creator>newtriks</dc:creator>
      <dc:date>2022-07-21T16:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824727#M325715</link>
      <description>&lt;P&gt;Without changing the FMTERR option setting you could use the DROP= dataset option (instead of the DROP statement) as in&lt;/P&gt;
&lt;PRE&gt;monseau.control_ALL&lt;STRONG&gt;(drop=Scan_Quality4___L_eye_not_so_goo)&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;to drop the offending variable in the DATA step or to exclude it in the PROC PRINT step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see the unformatted values in the PROC PRINT step, you could also use a FORMAT statement:&lt;/P&gt;
&lt;PRE&gt;proc print data=monseau.control_ALL;
&lt;STRONG&gt;format Scan_Quality4___L_eye_not_so_goo;&lt;/STRONG&gt;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 16:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-delete-a-variable/m-p/824727#M325715</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-07-21T16:52:34Z</dc:date>
    </item>
  </channel>
</rss>

