<?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 Remove data from the log in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Remove-data-from-the-log/m-p/905062#M357493</link>
    <description>Hi All,&lt;BR /&gt;I have a code which is writing some data in the log as a part of note/warning.&lt;BR /&gt;I want to suppress writing the column names and their values in the log. Is there any option that will prevent writing column names and their values? I am fine with the note though.&lt;BR /&gt;&lt;BR /&gt;Note: Invalid numeric data at line 520 column 35&lt;BR /&gt;column1=abc Column2=500 column3=12345………&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Nick</description>
    <pubDate>Wed, 29 Nov 2023 02:10:32 GMT</pubDate>
    <dc:creator>nickspencer</dc:creator>
    <dc:date>2023-11-29T02:10:32Z</dc:date>
    <item>
      <title>Remove data from the log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-data-from-the-log/m-p/905062#M357493</link>
      <description>Hi All,&lt;BR /&gt;I have a code which is writing some data in the log as a part of note/warning.&lt;BR /&gt;I want to suppress writing the column names and their values in the log. Is there any option that will prevent writing column names and their values? I am fine with the note though.&lt;BR /&gt;&lt;BR /&gt;Note: Invalid numeric data at line 520 column 35&lt;BR /&gt;column1=abc Column2=500 column3=12345………&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Nick</description>
      <pubDate>Wed, 29 Nov 2023 02:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-data-from-the-log/m-p/905062#M357493</guid>
      <dc:creator>nickspencer</dc:creator>
      <dc:date>2023-11-29T02:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from the log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-data-from-the-log/m-p/905063#M357494</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; Change the code so it does not cause that note/warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is a syntax error you should see in the LOG the code with underlines below it showing what part of the code is generating that note.&amp;nbsp; If not then you probably will see notes about trying to convert strings to numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what code is on line 520 of your program?&amp;nbsp; What statement/function call starts at column 35?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;1233  data test;
1234   set sashelp.class;
1235   x = sex*name;
1236  run;

NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
      1235:6    1235:10
NOTE: Invalid numeric data, Sex='M' , at line 1235 column 6.
NOTE: Invalid numeric data, Name='Alfred' , at line 1235 column 10.
Name=Alfred Sex=M Age=14 Height=69 Weight=112.5 x=. _ERROR_=1 _N_=1
&lt;/PRE&gt;
&lt;P&gt;So on line 1235 this program is trying to treat SEX and NAME as if they had NUMERIC values.&amp;nbsp; So SAS happily tried to convert M and Alfred to numbers, but it couldn't.&lt;/P&gt;
&lt;P&gt;So the fix is not to treat character variables as numbers.&amp;nbsp; If the character variable has a value that could be a number then convert it yourself using the appropriate informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 02:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-data-from-the-log/m-p/905063#M357494</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-29T02:35:50Z</dc:date>
    </item>
  </channel>
</rss>

