<?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: ERROR: Class not registered. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230022#M41678</link>
    <description>&lt;P&gt;Try EXCEL as the engine name rather than XLSX. I'm pretty sure XLSX is only possible with SAS 9.4 M2 or later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a few other things that may cause this error, but let's just try one thing at a time.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2015 07:26:23 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2015-10-15T07:26:23Z</dc:date>
    <item>
      <title>ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/229995#M41666</link>
      <description>&lt;P&gt;Please help me with this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%include "E:\program\monthly.sas";&lt;BR /&gt;%let sum=E:\data\datamonthly_&amp;amp;yr._&amp;amp;month..xls;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%data(&amp;amp;yr,&amp;amp;month,&amp;amp;sum);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/504i57FA4CA92B5E1D08/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where monthly.sas:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro data(year,month,lib);&lt;/P&gt;&lt;P&gt;libname s "&amp;amp;lib";&lt;/P&gt;&lt;P&gt;%mend data;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 02:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/229995#M41666</guid>
      <dc:creator>zay</dc:creator>
      <dc:date>2015-10-15T02:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/229996#M41667</link>
      <description>&lt;P&gt;You need to get your libname statement correct by adding the XLSX engine (SAS/Access to PC files needs to be licensed for this to work).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also: The macro parameter in your code is YEAR not YR. You should use this one within the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let year=2015;&lt;BR /&gt;%let month=10;&lt;BR /&gt;libname s &lt;STRONG&gt;xlsx&lt;/STRONG&gt; "E:\data\datamonthly_&lt;STRONG&gt;&amp;amp;year.&lt;/STRONG&gt;_&amp;amp;month..xls";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 02:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/229996#M41667</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-10-15T02:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/229999#M41668</link>
      <description>Thanks Patrick. But, how would I know if I have this (SAS/Access to PC files needs to be licensed for this to work)?</description>
      <pubDate>Thu, 15 Oct 2015 02:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/229999#M41668</guid>
      <dc:creator>zay</dc:creator>
      <dc:date>2015-10-15T02:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230007#M41671</link>
      <description>&lt;P&gt;Run: proc setinit noalias; run;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 04:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230007#M41671</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-10-15T04:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230011#M41672</link>
      <description>Thanks SASKiwi.</description>
      <pubDate>Thu, 15 Oct 2015 05:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230011#M41672</guid>
      <dc:creator>zay</dc:creator>
      <dc:date>2015-10-15T05:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230012#M41673</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;You need to get your libname statement correct by adding the XLSX engine (SAS/Access to PC files needs to be licensed for this to work).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also: The macro parameter in your code is YEAR not YR. You should use this one within the macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let year=2015;&lt;BR /&gt;%let month=10;&lt;BR /&gt;libname s &lt;STRONG&gt;xlsx&lt;/STRONG&gt; "E:\data\datamonthly_&lt;STRONG&gt;&amp;amp;year.&lt;/STRONG&gt;_&amp;amp;month..xls";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;SAS/Access to PC files has licensed but I got the same error.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 05:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230012#M41673</guid>
      <dc:creator>zay</dc:creator>
      <dc:date>2015-10-15T05:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230022#M41678</link>
      <description>&lt;P&gt;Try EXCEL as the engine name rather than XLSX. I'm pretty sure XLSX is only possible with SAS 9.4 M2 or later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a few other things that may cause this error, but let's just try one thing at a time.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 07:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230022#M41678</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-10-15T07:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230024#M41679</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Try EXCEL as the engine name rather than XLSX. I'm pretty sure XLSX is only possible with SAS 9.4 M2 or later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a few other things that may cause this error, but let's just try one thing at a time.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Still,&amp;nbsp;got the same error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 07:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230024#M41679</guid>
      <dc:creator>zay</dc:creator>
      <dc:date>2015-10-15T07:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230030#M41684</link>
      <description>&lt;P&gt;I can replicate the error when not using the XLSX engine. As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi﻿&lt;/a&gt;&amp;nbsp;wrote you need SAS9.4 for the XLSX engine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both the EXCEL and XLSX engine require SAS/Access to PC Files licensed. For the EXCEL engine also the PC File Server must be "up and running". I've got the Access module licensed but I haven't the PC File Server running - and in this situation I get exactly the same error than you do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The correct syntax for the EXCEL engine appears to be:&amp;nbsp;libname s excel &lt;STRONG&gt;path=&lt;/STRONG&gt;"&amp;lt;your path&amp;gt;";&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also use the suffix ".xlsx" and not ".xls".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What SAS version are you on?&lt;/P&gt;
&lt;P&gt;Does it work for you with the "path" syntax?&lt;/P&gt;
&lt;P&gt;Is SAS/Access to PC Files installed?&lt;/P&gt;
&lt;P&gt;Is the PC File Server running?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below link doesn't include the latest XLSX engine but else covers pretty much all the options you have to create your Excel file.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 08:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230030#M41684</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-10-15T08:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230031#M41685</link>
      <description>&lt;P&gt;Thanks Patrick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What SAS version are you on?&lt;BR /&gt;- SAS 9.3 (32)&lt;BR /&gt;Note: OS - 64-bit&lt;BR /&gt;&lt;BR /&gt;proc import/export using path .xlxs works for me, but the codes above got an error: class not registered.&lt;BR /&gt;&lt;BR /&gt;I've run SASKiwi codes:&lt;BR /&gt;proc setinit noalias; run;&lt;BR /&gt;Log shows the expiration date of the SAS Sytems (that maybe installed in my computer).&lt;BR /&gt;&lt;BR /&gt;Is the PC File Server running?&lt;BR /&gt;- I don't know if this is running.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 09:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230031#M41685</guid>
      <dc:creator>zay</dc:creator>
      <dc:date>2015-10-15T09:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230032#M41686</link>
      <description>&lt;P&gt;Then it appears you have a solution for writing an Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message could be a bit more descriptive but I'm pretty sure that the error you're getting is caused by a SAS component not being installed or configured and started. Most likely it's the PC File Server (which comes as part of SAS/Access to PC Files but needs post-installation&amp;nbsp;configuration to work)&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 09:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230032#M41686</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-10-15T09:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Class not registered.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230227#M41735</link>
      <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;.</description>
      <pubDate>Fri, 16 Oct 2015 04:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Class-not-registered/m-p/230227#M41735</guid>
      <dc:creator>zay</dc:creator>
      <dc:date>2015-10-16T04:39:36Z</dc:date>
    </item>
  </channel>
</rss>

