<?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: PUTN query in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178694#M45613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Pre calculate the value for your format, and if it's missing have a backup format, either in your format table.&lt;/SPAN&gt;&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;proc format;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;value missing_fmt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; missing = "NA";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if missing(format_wanted) then format_wanted="missing_fmt.";&lt;/P&gt;&lt;P&gt;new_var=putn(var, format_wanted);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 11:46:15 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-05-30T11:46:15Z</dc:date>
    <item>
      <title>PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178691#M45610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this is probably straighforward but...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following code within a datastep:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x =&amp;nbsp; PUTN(VARIABLE1, FORMATTABLE);&lt;/P&gt;&lt;P&gt;Basically, variable one is age and formattable is a tables that has ranges (start and end values) and if the age is within the range it returns a letter (the Label)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dataset is huge and in some cases there won't be a match and i just want sas to skip over it or give it a value of blank. It is leaving it blank in these cases but I get this horrible message in the log 'Argument 2 to PUTN at line xx column xx is invalid' followed by a long list of the values for the row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a cleaner approach to this in sas. A bit like in excel where you use iferror(var1, "")??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178691#M45610</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2014-05-30T10:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178692#M45611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PUTN() is not the function for what you are attempting to do.&amp;nbsp; PUTN() is used to put a numeric variable into a specific numeric format at run-time.&amp;nbsp; What I believe you are trying to do is to set a format on the numeric.&amp;nbsp; E.g.&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value myfmt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1-10 = "A"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11-20 = "B";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; attrib myval format=best.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; attrib result format=$20.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; myval=1; &lt;/P&gt;&lt;P&gt;&amp;nbsp; result=put(myval,myfmt.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; myval=15; &lt;/P&gt;&lt;P&gt;&amp;nbsp; result=put(myval,myfmt.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178692#M45611</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-05-30T10:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178693#M45612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The PUTN function works perfectly for this as long as there is a corresponding value in the table. If the age is 10 and the start value in the table formatable is 9 and the end value is 11 and the label for this range is A, the above function returns A and it has worked for me. It's when there is no match I want a clean way of avoiding error messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178693#M45612</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2014-05-30T11:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178694#M45613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Pre calculate the value for your format, and if it's missing have a backup format, either in your format table.&lt;/SPAN&gt;&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;proc format;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;value missing_fmt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; missing = "NA";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if missing(format_wanted) then format_wanted="missing_fmt.";&lt;/P&gt;&lt;P&gt;new_var=putn(var, format_wanted);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178694#M45613</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-30T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178695#M45614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Reeza thanks for your help. I've tried that but I'm still get errors. I've attached the exact code i used for the datastep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 12:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178695#M45614</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2014-05-30T12:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178696#M45615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We would need more details.&amp;nbsp; From the error message It seems to me that it not the&amp;nbsp; VARIABLE1 that is the culprit, as if it is, the putn will just throw a missing value. Please check out the following example and reveal more necessary details about FORMATTABLE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; vertical-align: auto;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;format&lt;/STRONG&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; vertical-align: auto;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; writfmt &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'date9.'&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin-bottom: .0001pt; vertical-align: auto;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'wrong format'&lt;/SPAN&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; vertical-align: auto;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&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; vertical-align: auto;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;quit&lt;/STRONG&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; vertical-align: auto;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; dates;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; vertical-align: auto;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; number key;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; vertical-align: auto;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; datefmt=put(key,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;writfmt.&lt;/SPAN&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; vertical-align: auto;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; date=putn(number,datefmt);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; vertical-align: auto;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;datalines&lt;/SPAN&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; vertical-align: auto;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;15756 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; vertical-align: auto;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;14552 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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&gt;&lt;/P&gt;&lt;P&gt;1 proc format;&lt;/P&gt;&lt;P&gt;2 value writfmt 1='date9.'&lt;/P&gt;&lt;P&gt;3 2='wrong format';&lt;/P&gt;&lt;P&gt;NOTE: Format WRITFMT has been output.&lt;/P&gt;&lt;P&gt;4 run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp; real time 0.09 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp; cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 quit;&lt;/P&gt;&lt;P&gt;6 data dates;&lt;/P&gt;&lt;P&gt;7 input number key;&lt;/P&gt;&lt;P&gt;8 datefmt=put(key,writfmt.);&lt;/P&gt;&lt;P&gt;9 date=putn(number,datefmt);&lt;/P&gt;&lt;P&gt;10 datalines;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Argument 2 to function PUTN at line 9 column 9 is invalid.&lt;/P&gt;&lt;P&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+-&lt;/P&gt;&lt;P&gt;12 14552 2&lt;/P&gt;&lt;P&gt;number=14552 key=2 datefmt=wrong format date= _ERROR_=1 _N_=2&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATES has 2 observations and 4 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp; real time 0.13 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp; cpu time 0.14 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;13 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 14:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178696#M45615</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-05-30T14:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178697#M45616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p12zqzvwx4dv6kn1p9crijxswolk.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p12zqzvwx4dv6kn1p9crijxswolk.htm"&gt;SAS(R) 9.3 Functions and CALL Routines: Reference&lt;/A&gt; putn see example 2. &lt;BR /&gt;The putn is needing a string as second parameter that is a valid format. When it is not a valid one it will fail.&lt;BR /&gt;If you are using a variable for that it is up to you coding in a way that assure it is having a valid format.&amp;nbsp;&amp;nbsp; Good coding practice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 14:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178697#M45616</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-30T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178698#M45617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hai.kuo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for not giving more detail. A bit of background...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a format table before this code using the 'proc format cntlin = table1 fmtlib; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table was a licence age table which contained the table name, ages ranged, and a banding corresponding to the range. So the first row of the table was LICAGEAAA&amp;nbsp; 0 5 A.&lt;/P&gt;&lt;P&gt;So, the table had 4 fields:&lt;/P&gt;&lt;P&gt;Fmtname = LICAGEAAA&lt;/P&gt;&lt;P&gt;Start = 0&lt;/P&gt;&lt;P&gt;End 5&lt;/P&gt;&lt;P&gt;Label = A&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format table consists of many rows as this relates to products (product AAA in example above) but the licence age ranges vary by product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later on in the code I need to reference this table so I can attache on the label to my dataset. So, if the licence age in one of the rows of my dataset is 4, i want to attach on the label A. Reeza kinfly helped me with this last week and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I use to call the label from this table is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LicenseAge = Putn(licenseage, Catt("LICAGE",product));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Licenseage and product are two fields in my dataset - Reeza helped me out with the Catt function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My query here is that if the CATT("Licage",Product) for a particular row has no match in the table, It leaves it blank but I get a formatting error in the log&amp;nbsp; which I don't like. It actually doesn't affect the caluclation but I would like to replace these missing values with "N/A" and have no errors in the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense at all?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 14:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178698#M45617</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2014-05-30T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178699#M45618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is easy fix for you:&lt;/P&gt;&lt;P&gt;1. In your format table, add one row to take care of those non-matched records:&lt;/P&gt;&lt;P&gt;Fmtname = LICAGENONMATCH&lt;/P&gt;&lt;P&gt;Start = 0 /*VALUE IS NOT RELEVANT*/&lt;/P&gt;&lt;P&gt;End 5&amp;nbsp; /*VALUE IS NOT RELEVANT*/ &lt;/P&gt;&lt;P&gt;Label = /*BLANK HERE*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2, Change your&amp;nbsp; statement as the following;&lt;/P&gt;&lt;P&gt;LicenseAge = Putn(licenseage, Cats("LICAGE", coalescec(product, 'NONMATCH'))); /*WHEN PRODUCT IS MISSING, YOU WILL HAVE FORMAT&amp;nbsp; LICAGENONMATCH IN PLAY, AND&amp;nbsp; LICAGENONMATCH HAS ALREADY BEEN DEFINED.*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck and sorry for the caps,&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 15:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178699#M45618</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-05-30T15:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: PUTN query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178700#M45619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are telling you have a table of licenseage varying in product.&amp;nbsp; &lt;BR /&gt;For every product you have defined a format.&amp;nbsp; The can be a format (eg dummyNA)&amp;nbsp; when applied will always give the value 'N/A'&amp;nbsp; &lt;BR /&gt;You could define a format that applied to the product will result in the associated format. When no format is applicable then that dummyNA format is the resulting value. The result/goal always having a valid value existing format.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 15:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PUTN-query/m-p/178700#M45619</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-30T15:14:02Z</dc:date>
    </item>
  </channel>
</rss>

