<?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: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column). in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181018#M34555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is not the program, only a macro that is called by the program. As a minimum the entire datastep including the macro call(s) would likely help diagnose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 16:20:23 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-06-02T16:20:23Z</dc:date>
    <item>
      <title>Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181015#M34552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to remove the notes from my log file, but without success.&amp;nbsp; I have checked the variable's format, they are consistent with the value I assigned.&amp;nbsp; Here is part of my log file:&lt;/P&gt;&lt;P&gt;====================&lt;/P&gt;&lt;P&gt;-------------------In LOCF MACRO------------------&lt;/P&gt;&lt;P&gt;NOTE: ENRLL=&amp;nbsp; FmtVar=$1. FmtRtn=$200.&lt;/P&gt;&lt;P&gt;NOTE: Character Variable: ENRLL&lt;/P&gt;&lt;P&gt;-------------------In LOCF MACRO------------------&lt;/P&gt;&lt;P&gt;NOTE: ENRLLDT=. FmtVar=DATE9. FmtRtn=DATE9.&lt;/P&gt;&lt;P&gt;NOTE: Numeric Variable: ENRLLDT&lt;/P&gt;&lt;P&gt;-------------------In LOCF MACRO------------------&lt;/P&gt;&lt;P&gt;NOTE: SDCRES=DISEASE PROGRESSION FmtVar=$100. FmtRtn=$200.&lt;/P&gt;&lt;P&gt;NOTE: Character Variable: SDCRES&lt;/P&gt;&lt;P&gt;-------------------In LOCF MACRO------------------&lt;/P&gt;&lt;P&gt;NOTE: SDCRESN=5 FmtVar=BEST12. FmtRtn=BEST12.&lt;/P&gt;&lt;P&gt;NOTE: Numeric Variable: SDCRESN&lt;/P&gt;&lt;P&gt;-------------------In LOCF MACRO------------------&lt;/P&gt;&lt;P&gt;NOTE: SDISCDT=06JUN2013 FmtVar=DATE9. FmtRtn=DATE9.&lt;/P&gt;&lt;P&gt;NOTE: Numeric Variable: SDISCDT&lt;/P&gt;&lt;P&gt;-------------------In LOCF MACRO------------------&lt;/P&gt;&lt;P&gt;NOTE: TDCRES=&amp;nbsp; FmtVar=$100. FmtRtn=$200.&lt;/P&gt;&lt;P&gt;NOTE: Character Variable: TDCRES&lt;/P&gt;&lt;P&gt;-------------------In LOCF MACRO------------------&lt;/P&gt;&lt;P&gt;NOTE: TDCRESN=. FmtVar=BEST12. FmtRtn=BEST12.&lt;/P&gt;&lt;P&gt;NOTE: Numeric Variable: TDCRESN&lt;/P&gt;&lt;P&gt;-------------------In LOCF MACRO------------------&lt;/P&gt;&lt;P&gt;NOTE: TDISCDT=. FmtVar=DATE9. FmtRtn=DATE9.&lt;/P&gt;&lt;P&gt;NOTE: Numeric Variable: TDISCDT&lt;/P&gt;&lt;P&gt;-------------------In LOCF MACRO------------------&lt;/P&gt;&lt;P&gt;NOTE: DEATHDT=. FmtVar=DATE9. FmtRtn=DATE9.&lt;/P&gt;&lt;P&gt;NOTE: Numeric Variable: DEATHDT&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;========================&lt;/P&gt;&lt;P&gt;Here id the program:&lt;/P&gt;&lt;P&gt;======================&lt;/P&gt;&lt;P&gt;%MACRO LOCF(LOCFVar, SortVar, RetainV);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; %IF &amp;amp;_DEBUG = 1 %THEN %DO; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FmtVar = vformat(&amp;amp;LOCFVar);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FmtRtn = vformat(&amp;amp;RetainV);&lt;/P&gt;&lt;P&gt;&amp;nbsp; PUT "-------------------In LOCF MACRO------------------";&lt;/P&gt;&lt;P&gt;&amp;nbsp; PUT "NOTE: " &amp;amp;LOCFVar= FmtVar= FmtRtn=;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*If it is a character variable;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF VTYPE(&amp;amp;LOCFVar)= 'C' THEN DO;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PUT "NOTE: Character Variable: &amp;amp;LOCFVar";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Initial the variable value at first.byVar;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF first.&amp;amp;SortVar THEN &amp;amp;RetainV='';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF &amp;amp;LOCFVar ^= '' THEN &amp;amp;RetainV = &amp;amp;LOCFVar;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE &amp;amp;LOCFVar=&amp;amp;RetainV;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*If it is a Numeric variable;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF VTYPE(&amp;amp;LOCFVar)= 'N' THEN DO;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PUT "NOTE: Numeric Variable: &amp;amp;LOCFVar";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Initial the variable value at first.byVar;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF first.&amp;amp;SortVar THEN &amp;amp;RetainV=.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF &amp;amp;LOCFVar ^= . THEN &amp;amp;RetainV=&amp;amp;LOCFVar;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE &amp;amp;LOCFVar=&amp;amp;RetainV;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MEND LOCF;&lt;/P&gt;&lt;P&gt;========================&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 15:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181015#M34552</guid>
      <dc:creator>Abdu</dc:creator>
      <dc:date>2014-06-02T15:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181016#M34553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should post the errors you're getting and the relevant lines of code that it refers to. Seeing your code and the output you want doesn't help much.&lt;/P&gt;&lt;P&gt;In general that message appears when you're doing something with a variable where it expects a different type. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 15:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181016#M34553</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-02T15:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181017#M34554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a design consideration, not a SAS quirk.&amp;nbsp; You have designed the macro so that &amp;amp;LOCFVAR sometimes refers to a numeric value and sometimes refers to a character value.&amp;nbsp; That design forces SAS to convert at some point.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 16:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181017#M34554</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-06-02T16:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181018#M34555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is not the program, only a macro that is called by the program. As a minimum the entire datastep including the macro call(s) would likely help diagnose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 16:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181018#M34555</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-02T16:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181019#M34556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no errors, and the results are fine.&amp;nbsp; I just want to remove these notes.&amp;nbsp; My log message exactly showed that in the LOCF macro, the variable types and formats are matched the operations.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;Abdu &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181019#M34556</guid>
      <dc:creator>Abdu</dc:creator>
      <dc:date>2014-06-02T17:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181020#M34557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Astounding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just do not know which part is causing the notes.&amp;nbsp;&amp;nbsp; Yes, LOCFVAR could be both character and Numeric, but when the macro code was replaced, LOCFVAR is different entity.&amp;nbsp; If the format matched, why SAS still give notes?&amp;nbsp; Some logic behind?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181020#M34557</guid>
      <dc:creator>Abdu</dc:creator>
      <dc:date>2014-06-02T17:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181021#M34558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ballarsw,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program called this macro is little long.&amp;nbsp; But I am posting the code entirely, if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181021#M34558</guid>
      <dc:creator>Abdu</dc:creator>
      <dc:date>2014-06-02T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181022#M34559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you need to change the SAS code that is referencing the variable so that it either uses the right syntax for the variable type or convert to some expression that does not require type conversion by SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if &amp;amp;LOCFVAR is numeric then it might be this reference that is generating the note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /*Initial the variable value at first.byVar;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; IF first.&amp;amp;SortVar THEN &amp;amp;RetainV='';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; IF &amp;amp;LOCFVar ^= '' THEN &amp;amp;RetainV = &amp;amp;LOCFVar;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ELSE &amp;amp;LOCFVar=&amp;amp;RetainV;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You could convert your code to below to preserve the function and prevent SOME of the notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /*Initial the variable value at first.byVar;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; IF first.&amp;amp;SortVar THEN &amp;amp;RetainV='';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; IF missing(&amp;amp;LOCFVar) THEN &amp;amp;RetainV = cats(&amp;amp;LOCFVar) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ELSE &amp;amp;LOCFVar=&amp;amp;RetainV;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;But to really get rid of them why not tell the macro what TYPE to variable is so that it can generate the proper code?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181022#M34559</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-06-02T17:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181023#M34560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is code that does NOT depend on the type of the variable. Only conflict would be if the &amp;amp;RETAINV variable already existed in the data vector.&lt;/P&gt;&lt;P&gt;By making the first reference to the new &amp;amp;RETAINV variable an assignment statement SAS should automatically create it with the same type as the source variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; locf&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(LOCFVar&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;/* Variable to retain */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,SortVar&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;/* By var */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,RetainV&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;/* Temporary variable to use for carry forward */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;first.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;amp;sortvar then &amp;amp;retainv = &amp;amp;locfvar ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;else if missing(&amp;amp;locfvar) then &amp;amp;locfvar = &amp;amp;retainv ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;else &amp;amp;retainv = &amp;amp;locfvar ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;retain &amp;amp;retainv ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;drop &amp;amp;retainv ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; locf ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181023#M34560</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-06-02T17:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181024#M34561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From looking at your macro code, I suspect the issue is that, in one of the calls to the macro, the data type of RetainV does not match the data type of LOCFVar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no easier solution (such as rewriting the logic) presents itself, you could check the type of RetainV within your two main branches, and do explicit type conversions (with the INPUT or PUT functions) as necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 18:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181024#M34561</guid>
      <dc:creator>MikeRhoads</dc:creator>
      <dc:date>2014-06-02T18:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying Note: Numeric values have been converted to character values at the places given by: (Line):(Column).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181025#M34562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lovely Tom! This solution removed all the annoying notes.&amp;nbsp; Your missing() suggestion is the KEY!&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 02:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Annoying-Note-Numeric-values-have-been-converted-to-character/m-p/181025#M34562</guid>
      <dc:creator>Abdu</dc:creator>
      <dc:date>2014-06-03T02:42:01Z</dc:date>
    </item>
  </channel>
</rss>

