<?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: credit card numbers in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/882#M422</link>
    <description>sorry, &lt;BR /&gt;
I miss-read  "1.23456789123E16" as having best12. format, when it is in fact best16. !&lt;BR /&gt;
&lt;BR /&gt;
The underlying data was 17 digits !&lt;BR /&gt;
Revised to 16, it is all working &lt;BR /&gt;
&lt;BR /&gt;
Obs	x	n&lt;BR /&gt;
1	1234567891234567	1234567891234567&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Many thanks I now can delive CC-numbers as we need !&lt;BR /&gt;
&lt;BR /&gt;
Peter</description>
    <pubDate>Wed, 21 Jun 2006 15:24:32 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-06-21T15:24:32Z</dc:date>
    <item>
      <title>credit card numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/874#M414</link>
      <description>with 16 digits, excel is unkind to the cc-numbers passed from SAS. Is there some style that could recognize a 16 digit numeric value (or string) and "protect" it in some way that excel would respect?  (excel sets the 16th digit to zero !)</description>
      <pubDate>Tue, 20 Jun 2006 17:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/874#M414</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-06-20T17:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: credit card numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/875#M415</link>
      <description>You can use the text format. I am not sure which method you are using to move the output to Excel, however if you are using the ExcelXP tagset the below will work.&lt;BR /&gt;
&lt;BR /&gt;
data one;&lt;BR /&gt;
 x="12345678912345678";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp file="temp.xls";&lt;BR /&gt;
&lt;BR /&gt;
proc print data=one;&lt;BR /&gt;
var x / style(data)={tagattr="format:@"};&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp close;</description>
      <pubDate>Tue, 20 Jun 2006 19:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/875#M415</guid>
      <dc:creator>Chevell_sas</dc:creator>
      <dc:date>2006-06-20T19:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: credit card numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/876#M416</link>
      <description>thank you, but.... running your example, my results are not what you intended of that code&lt;BR /&gt;
&lt;BR /&gt;
Obs       x&lt;BR /&gt;
1         1.23457E+16&lt;BR /&gt;
&lt;BR /&gt;
is the excel display when I open temp.xls&lt;BR /&gt;
&lt;BR /&gt;
formatting the "x" column as number with no decimal places..... shows  &lt;BR /&gt;
12345678912345700&lt;BR /&gt;
&lt;BR /&gt;
the session log shows&lt;BR /&gt;
NOTE: SAS 9.1.3 Service Pack 3&lt;BR /&gt;
How can I tell if this is not the latest version of excelXP&lt;BR /&gt;
&lt;BR /&gt;
Peter</description>
      <pubDate>Wed, 21 Jun 2006 09:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/876#M416</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-06-21T09:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: credit card numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/877#M417</link>
      <description>Peter,&lt;BR /&gt;
&lt;BR /&gt;
As you originally suggested, the problem lies with Excel being unable to recognise numbers with more than 15 digits. You will have to ensure that SAS exports the field as a character field (with preceeding quote). If you can achieve that, Excel will correctly read the value as text.</description>
      <pubDate>Wed, 21 Jun 2006 11:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/877#M417</guid>
      <dc:creator>ChrisJones</dc:creator>
      <dc:date>2006-06-21T11:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: credit card numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/878#M418</link>
      <description>Do you have the latest ExcelXP tagset installed?  You can find it at the following link:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/topics/odsmarkup/" target="_blank"&gt;http://support.sas.com/rnd/base/topics/odsmarkup/&lt;/A&gt;</description>
      <pubDate>Wed, 21 Jun 2006 11:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/878#M418</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2006-06-21T11:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: credit card numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/879#M419</link>
      <description>many thanks, I needed that pointer. &lt;BR /&gt;
&lt;BR /&gt;
After downloading and running that proc template with the "Excel XP tagset (SAS 9.1.3, v1.37, 05/31/06)", the 16-digit character value successfully surfaces in excel. &lt;BR /&gt;
&lt;BR /&gt;
How about 16 numeric digits?&lt;BR /&gt;
&lt;BR /&gt;
I tried this code :&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp file="temp2.xls"  ;&lt;BR /&gt;
proc print data= two;&lt;BR /&gt;
  var x / style(data)={tagattr="format:@"};&lt;BR /&gt;
  var n / style(data)={tagattr="Format:0"} ;&lt;BR /&gt;
  format n z16. ;&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
%sysexec "temp2.xls";&lt;BR /&gt;
&lt;BR /&gt;
and excel shows&lt;BR /&gt;
&lt;BR /&gt;
Obs	x	n&lt;BR /&gt;
1	12345678912345678	12345678912300000&lt;BR /&gt;
&lt;BR /&gt;
Clearly somewhere, 12 sig. digits is assumed.&lt;BR /&gt;
&lt;BR /&gt;
With no more success, I also tried  &lt;BR /&gt;
ods tagsets.excelxp file="temp4.xls"  options(Numeric_Test_Format='16.'  );&lt;BR /&gt;
&lt;BR /&gt;
I know there are many things I'm missing here. &lt;BR /&gt;
What's the magic that allows all 16 digits through ?&lt;BR /&gt;
&lt;BR /&gt;
Peter</description>
      <pubDate>Wed, 21 Jun 2006 13:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/879#M419</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-06-21T13:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: credit card numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/880#M420</link>
      <description>Excel only maintains 15 significant digits for numbers, so this is a limitation of Excel. If you need more than the 15 characters, the field will need to be read as text.</description>
      <pubDate>Wed, 21 Jun 2006 13:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/880#M420</guid>
      <dc:creator>Chevell_sas</dc:creator>
      <dc:date>2006-06-21T13:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: credit card numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/881#M421</link>
      <description>thank you - I'm quite happy that the credit card (cc) number must be treated as text. &lt;BR /&gt;
Does that mean a SAS column containing the cc number as a numeric must be converted to character in the dataset that is read by proc print ?&lt;BR /&gt;
&lt;BR /&gt;
When I use the text style for numeric data &amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;
ods tagsets.excelxp file="temp3.xls"  ;&lt;BR /&gt;
proc print data= two;&lt;BR /&gt;
  var x n / style(data)={tagattr="format:@"};&lt;BR /&gt;
  format n z16. ;&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
ods _all_ close ;&lt;BR /&gt;
%sysexec "temp3.xls";&lt;BR /&gt;
&lt;BR /&gt;
I get text in excel, &lt;BR /&gt;
&lt;BR /&gt;
Obs	x	n&lt;BR /&gt;
1	12345678912345678	1.23456789123E16&lt;BR /&gt;
&lt;BR /&gt;
but it arrives in sas format best12. even though I requested z16. in the format statement&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Peter</description>
      <pubDate>Wed, 21 Jun 2006 15:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/881#M421</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-06-21T15:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: credit card numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/882#M422</link>
      <description>sorry, &lt;BR /&gt;
I miss-read  "1.23456789123E16" as having best12. format, when it is in fact best16. !&lt;BR /&gt;
&lt;BR /&gt;
The underlying data was 17 digits !&lt;BR /&gt;
Revised to 16, it is all working &lt;BR /&gt;
&lt;BR /&gt;
Obs	x	n&lt;BR /&gt;
1	1234567891234567	1234567891234567&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Many thanks I now can delive CC-numbers as we need !&lt;BR /&gt;
&lt;BR /&gt;
Peter</description>
      <pubDate>Wed, 21 Jun 2006 15:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/credit-card-numbers/m-p/882#M422</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-06-21T15:24:32Z</dc:date>
    </item>
  </channel>
</rss>

