<?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 Format issue with character variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24645#M4195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable that I am importing from a flat file. It contains spaces, alpha characters and numbers. I am importing it using input with a length of 32 ($32).&lt;/P&gt;&lt;P&gt;My problem is that some of the numbers are showing up in exponential format (see examples below). Anyone have a suggestion on how to correct this, so that all numerics show the full number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Acct_Nbr&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1.00009E+12&lt;/P&gt;&lt;P&gt;7200025802&lt;/P&gt;&lt;P&gt;1.01018E+12&lt;/P&gt;&lt;P&gt;6581202097&lt;/P&gt;&lt;P&gt;6.06005E+13&lt;/P&gt;&lt;P&gt;7441258501&lt;/P&gt;&lt;P&gt;5.20004E+11&lt;/P&gt;&lt;P&gt;900-161-6121&lt;/P&gt;&lt;P&gt;323553729&lt;/P&gt;&lt;P&gt;2.00004E+12&lt;/P&gt;&lt;P&gt;4.07028E+19&lt;/P&gt;&lt;P&gt;662631175&lt;/P&gt;&lt;P&gt;1.53495E+11&lt;/P&gt;&lt;P&gt;662631175&lt;/P&gt;&lt;P&gt;4127400093&lt;/P&gt;&lt;P&gt;ABC 123324&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the assistance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2011 12:24:31 GMT</pubDate>
    <dc:creator>Mr_Breeze</dc:creator>
    <dc:date>2011-10-05T12:24:31Z</dc:date>
    <item>
      <title>Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24645#M4195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable that I am importing from a flat file. It contains spaces, alpha characters and numbers. I am importing it using input with a length of 32 ($32).&lt;/P&gt;&lt;P&gt;My problem is that some of the numbers are showing up in exponential format (see examples below). Anyone have a suggestion on how to correct this, so that all numerics show the full number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Acct_Nbr&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1.00009E+12&lt;/P&gt;&lt;P&gt;7200025802&lt;/P&gt;&lt;P&gt;1.01018E+12&lt;/P&gt;&lt;P&gt;6581202097&lt;/P&gt;&lt;P&gt;6.06005E+13&lt;/P&gt;&lt;P&gt;7441258501&lt;/P&gt;&lt;P&gt;5.20004E+11&lt;/P&gt;&lt;P&gt;900-161-6121&lt;/P&gt;&lt;P&gt;323553729&lt;/P&gt;&lt;P&gt;2.00004E+12&lt;/P&gt;&lt;P&gt;4.07028E+19&lt;/P&gt;&lt;P&gt;662631175&lt;/P&gt;&lt;P&gt;1.53495E+11&lt;/P&gt;&lt;P&gt;662631175&lt;/P&gt;&lt;P&gt;4127400093&lt;/P&gt;&lt;P&gt;ABC 123324&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the assistance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 12:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24645#M4195</guid>
      <dc:creator>Mr_Breeze</dc:creator>
      <dc:date>2011-10-05T12:24:31Z</dc:date>
    </item>
    <item>
      <title>Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24646#M4196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Breeze,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post some input data and the sas code you are using..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chendhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 12:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24646#M4196</guid>
      <dc:creator>ChendhilKumar</dc:creator>
      <dc:date>2011-10-05T12:41:20Z</dc:date>
    </item>
    <item>
      <title>Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24647#M4197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help if you provide some example incoming data and the code you are using to import the file.&amp;nbsp; You may only have to apply a numeric format (like best32.).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 12:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24647#M4197</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-05T12:43:18Z</dc:date>
    </item>
    <item>
      <title>Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24648#M4198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; Here's part of my code:&lt;/P&gt;&lt;P&gt;data TC1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile "path\today.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp; delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Beneficiary_Account $32. ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format Beneficiary_Account $32. ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input&amp;nbsp; Beneficiary_Account $;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example of the incoming data (csv file):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;27569276 &lt;/P&gt;&lt;P&gt; 27569276 &lt;/P&gt;&lt;P&gt;5.102E+11 &lt;/P&gt;&lt;P&gt; LU520023190087756900 &lt;/P&gt;&lt;P&gt; 8377715 &lt;/P&gt;&lt;P&gt; 11937232 &lt;/P&gt;&lt;P&gt; 1.0023E+11&lt;/P&gt;&lt;P&gt; 501-408899-3 &lt;/P&gt;&lt;P&gt;8.01411E+13 &lt;/P&gt;&lt;P&gt; 2323339 &lt;/P&gt;&lt;P&gt; 5103366633 &lt;/P&gt;&lt;P&gt; 1.6023E+11 &lt;/P&gt;&lt;P&gt; 1.00021E+13 &lt;/P&gt;&lt;P&gt; 820930 &lt;/P&gt;&lt;P&gt; 1700008145 &lt;/P&gt;&lt;P&gt;2.72304E+13 &lt;/P&gt;&lt;P&gt; 7881283120&lt;/P&gt;&lt;P&gt; 8.98002E+11 &lt;/P&gt;&lt;P&gt; 5221725656 &lt;/P&gt;&lt;P&gt;CM128804&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 13:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24648#M4198</guid>
      <dc:creator>Mr_Breeze</dc:creator>
      <dc:date>2011-10-05T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24649#M4199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Character strings don't know or care if the string looks like a number in scientific notation. &lt;/P&gt;&lt;P&gt;So what is it that you want to change?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to convert the scientific notation character strings in the input CSV file into some other format?&amp;nbsp; What format do you want.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds like the real problem might be in whatever process generated the CSV file.&amp;nbsp; Do you have control over that process?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 13:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24649#M4199</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-05T13:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24650#M4200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think that you are trying to accomplish something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data TC1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile "path\today.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp; delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Beneficiary_Account $32. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format Beneficiary_Account $32. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input&amp;nbsp; Beneficiary_Account;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if not missing(input(Beneficiary_Account, ?? best32.))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; then Beneficiary_Account=strip(put(input(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Beneficiary_Account,best32.),best32.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 13:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24650#M4200</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-05T13:40:06Z</dc:date>
    </item>
    <item>
      <title>Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24651#M4201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Art, that took care of it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for the help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 13:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24651#M4201</guid>
      <dc:creator>Mr_Breeze</dc:creator>
      <dc:date>2011-10-05T13:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24652#M4202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... just a suggestion about Art's code, this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Beneficiary_Account=strip(put(input(Beneficiary_Account,best32.),best32.));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #000000; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;P&gt;can be replaced by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Beneficiary_Account=cats(input(Beneficiary_Account,best32.));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 17:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24652#M4202</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2011-10-05T17:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24653#M4203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should still double check what is causing the underlying issue.&amp;nbsp; If your account numbers have more than 12 significant digits or require leading zeros then you will not be able to convert the scientific notation generated by the BEST12. format back to the original string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 18:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24653#M4203</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-05T18:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24654#M4204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... here's something new in V9.3, creating an&amp;nbsp; INFORMAT (or FORMAT) from a user-defined function.&lt;/P&gt;&lt;P&gt;The MISSING and FIND in the SELECT statement is 'situation-specific' since this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;when (^missing(input(a, best32.))) c = a;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently does not work (produces errors).&amp;nbsp; Maybe someone else knows a good way to determine if a character string&lt;/P&gt;&lt;P&gt;can be converted to a number without using an INPUT function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also ... "Example 12: Creating a Function to Use as a Format"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/63079/HTML/default/viewer.htm#p1gg77jyhc9s42n1f1vjyx2hsg8b.htm"&gt;http://support.sas.com/documentation/cdl/en/proc/63079/HTML/default/viewer.htm#p1gg77jyhc9s42n1f1vjyx2hsg8b.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN style="font-family: 'courier new', courier;"&gt;proc fcmp outlib=work.functions.math;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; function acc(a $) $;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; select;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (^missing(compress(a,,'d')) and ^find(a,'E+')) c = a;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; otherwise c = cats(input(a,best32.));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; return(c);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; endsub;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;options cmplib=work.functions;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;proc format;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;invalue $acc other = [acc()];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;run; &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;data new;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;input x : &amp;amp; $acc32. @@;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;27569276&amp;nbsp;&amp;nbsp; 27569276&amp;nbsp;&amp;nbsp; 5.102E+11&amp;nbsp;&amp;nbsp; LU520023190087756900&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;8377715&amp;nbsp;&amp;nbsp; 11937232 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;1.0023E+11&amp;nbsp;&amp;nbsp; 4.07028E+19&amp;nbsp;&amp;nbsp; 662631175&amp;nbsp;&amp;nbsp; 1.53495E+11&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;662631175&amp;nbsp;&amp;nbsp; 4127400093&amp;nbsp;&amp;nbsp; ABC 123324&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;results ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;27569276&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;27569276&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;510200000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;LU520023190087756900&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;8377715&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;11937232&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;100230000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;40702800000000000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;662631175&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;153495000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;662631175&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;4127400093&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ABC 123324&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 16:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24654#M4204</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2011-10-06T16:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24655#M4205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not have 9.3, but did you try adding '??' to the input function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'courier new', courier;"&gt;when (^missing(input(a, ??best32.))) c = a;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 18:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24655#M4205</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-06T18:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24656#M4206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&amp;nbsp; That is what I did in my original suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 18:13:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24656#M4206</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-06T18:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24657#M4207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... here's why ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;32&amp;nbsp;&amp;nbsp; proc fcmp outlib=work.functions.math;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function acc(a $) $;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;35&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (^missing(input(a, ?? best32.))) c = a;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&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;&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&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&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;&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; 22&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&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;&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; 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ERROR 22-322: Expecting a format name.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; otherwise c = cats(input(a,best32.));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;37&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;38&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(c);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;39&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endsub;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;40&amp;nbsp;&amp;nbsp; quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You get the same error with ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when (^missing(input(a, ? best32.))) c = a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, after a few email exchanges, I learned that ? and ?? might be available in PROC FCMP in a later version of V9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps&amp;nbsp; Another variation ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Tips:Create_an_Informat_from_a_User-Defined_Function"&gt;http://www.sascommunity.org/wiki/Tips:Create_an_Informat_from_a_User-Defined_Function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 18:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24657#M4207</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2011-10-06T18:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24658#M4208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also get rid of the "best" in the informat. It's just an alias, one which reinforces the misconception that something is being optimized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Beneficiary_Account=cats(input(Beneficiary_Account,32.));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;MikeZdeb wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi ... just a suggestion about Art's code, this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Beneficiary_Account=strip(put(input(Beneficiary_Account,best32.),best32.));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #000000; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: #ffffff;" /&gt;&lt;/P&gt;&lt;P&gt;can be replaced by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Beneficiary_Account=cats(input(Beneficiary_Account,best32.));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 22:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24658#M4208</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2011-10-06T22:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Format issue with character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24659#M4209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed!&amp;nbsp; Based on user notes like &lt;A href="http://support.sas.com/kb/19/665.html"&gt;http://support.sas.com/kb/19/665.html&lt;/A&gt; I always presumed that it did do some kind of optimizing.&amp;nbsp; However, based on your post I tried to look it up and discovered that you are indeed correct .. as usual! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. I've just started reading your book and, while I'm only at the beginning, I already like what I see!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 22:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issue-with-character-variable/m-p/24659#M4209</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-06T22:21:04Z</dc:date>
    </item>
  </channel>
</rss>

