<?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: Remove Note from Log. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469740#M120199</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215179"&gt;@david27&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can some one please help me with this code.&lt;/P&gt;
&lt;P&gt;It works fine but leaves a Note. Similar to this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;don't&lt;/FONT&gt;&lt;/STRONG&gt; want this note in log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215179"&gt;@david27&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I think that's a great note and that you shouldn't be able to get rid of it other than via implementing clean code.&lt;/P&gt;
&lt;P&gt;Below code which doesn't create such a note.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let start_date=201803;
%let end_date= 201805;

data _null_;
  endcnt=intck('month',input(cat("&amp;amp;start_date",'01'),yymmdd8.), input(cat("&amp;amp;end_date",'01'),yymmdd8.));
  call symput('endcnt',put(endcnt,f10. -l));
run;

%put endcnt=&amp;amp;endcnt.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Jun 2018 20:04:07 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2018-06-12T20:04:07Z</dc:date>
    <item>
      <title>Remove Note from Log.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469730#M120196</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one please help me with this code.&lt;/P&gt;&lt;P&gt;It works fine but leaves a Note. Similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;don't&lt;/FONT&gt;&lt;/STRONG&gt; want this note in log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise what should I change the code to, to avoid this note.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let start_date=201803;
%let stop_date= 201805;
data _null_;
		call symput('endcnt',intck('month',input(cat(&amp;amp;start_date,'01'),yymmdd8.), input(cat(&amp;amp;end_date,'01'),yymmdd8.)));
	run;
%put endcnt==&amp;amp;endcnt.;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469730#M120196</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2018-06-12T19:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Note from Log.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469736#M120198</link>
      <description>&lt;P&gt;try call &lt;STRONG&gt;symputx&lt;/STRONG&gt;&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;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002295697.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002295697.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;HR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Comparisons&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALL SYMPUTX is similar to CALL SYMPUT except that&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;CALL SYMPUTX does not write a note to the SAS log when the second argument is numeric.&lt;/STRONG&gt;&lt;/EM&gt; CALL SYMPUT, however, writes a note to the log stating that numeric values were converted to character values.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 12 Jun 2018 20:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469736#M120198</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-12T20:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Note from Log.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469740#M120199</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215179"&gt;@david27&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can some one please help me with this code.&lt;/P&gt;
&lt;P&gt;It works fine but leaves a Note. Similar to this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;don't&lt;/FONT&gt;&lt;/STRONG&gt; want this note in log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215179"&gt;@david27&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I think that's a great note and that you shouldn't be able to get rid of it other than via implementing clean code.&lt;/P&gt;
&lt;P&gt;Below code which doesn't create such a note.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let start_date=201803;
%let end_date= 201805;

data _null_;
  endcnt=intck('month',input(cat("&amp;amp;start_date",'01'),yymmdd8.), input(cat("&amp;amp;end_date",'01'),yymmdd8.));
  call symput('endcnt',put(endcnt,f10. -l));
run;

%put endcnt=&amp;amp;endcnt.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jun 2018 20:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469740#M120199</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-06-12T20:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Note from Log.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469742#M120200</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt; and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215179"&gt;@david27&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I still believe using an explicit PUT statement for numeric variables is the better option as else SAS will use whatever default or previously permanently assigned format applies to the numeric variable.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 20:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469742#M120200</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-06-12T20:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Note from Log.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469743#M120201</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;Sir, I don't disagree with a cleaner approach. But in this instance of OP's requirement, I believe call symputx should suffice well.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 20:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469743#M120201</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-12T20:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Note from Log.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469856#M120231</link>
      <description>&lt;P&gt;The fact that symputx hides the automatic conversion does not remove the dangers of such. An automatic type cast is an automatic type cast is an automatic type cast. No way around it.&lt;/P&gt;
&lt;P&gt;So the proper approach is always to take full control of the process and use a put with a defined format. I use symputx for automatic stripping and control of the target symbol table, not to hide my sloppy programming.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let start_date=201803;
%let stop_date=201805;

data _null_;
call symputx('endcnt',put(intck('month',input("&amp;amp;start_date.01",yymmdd8.),input("&amp;amp;stop_date.01",yymmdd8.)),5.));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 09:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-Note-from-Log/m-p/469856#M120231</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-13T09:00:00Z</dc:date>
    </item>
  </channel>
</rss>

