SUPPORT / SAMPLES & SAS NOTES
 

Support

Installation Note 34150: Error messages might appear when you invoke the SAS® 9.2 Enhanced Editor

DetailsAboutRate It

When you invoke the SAS 9.2 Enhanced Editor, the following error message might appear:

Enhanced Editor
Unable to load managed editor component. Error: 0x80040154.
The editor may not be installed properly.

When you click OK in the message box, SAS finishes invoking and the following message appears in the SAS log:

OLE: Out of memory.

When you inspect the following files, they seem to be normal and show no error messages or error codes:

C:\Program Files\SAS\SASFoundation\9.2\sassetup.log
C:\Program Files\SAS\Shared Files\EnhancedEditor\eeditor_<date>_<time>.log
C:\Program Files\SAS\SASFoundation\9.2\eeditor_silentsetup.log

The version numbers for EditorControl.ocx and SAS.EnhancedEditor.dll are as expected (9.200.0.8242 or higher).

To fix this issue, follow the steps for reregistering and reinstalling that appear in SAS Note 20757 "Error messages might appear in the SAS® log when you invoke SAS or open the Enhanced Editor."

If you invoke SAS again after following the reinstallation steps in SAS Note 20757 and the error messages still occur, follow these steps:

  1. Select Start ► Run, type regedit, and select OK.

    Warning: Always back up your registry file before you make any registry changes. For assistance, see Windows Help, Microsoft documentation, or the Microsoft Windows Web site. SAS is not responsible when you edit the Windows registry: changes in the Windows registry can render your system unusable and require that you reinstall the operating system.

  2. Verify that the Consumers key name entry exists in the registry file and delete it, if necessary:
    1. In the Registry Editor, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\SAS Institute Inc.\Common Data\Shared Files\Enhanced Editor.
    2. Inspect for the Consumers key name entry.
    3. If the Consumers key name entry exists, delete it.

  3. Uninstall the editor:
    1. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\SAS Institute Inc.\Common Data\Shared Files\Enhanced Editor\UninstallString.
    2. Copy the Uninstallstring value.
    3. Select Start ► Run, paste in the copied Uninstallstring value, and clickOK.
    4. Refresh the registry by pressing the F5 key or selecting View ► Refresh.
    5. Verify that HKEY_LOCAL_MACHINE\SOFTWARE\SAS Institute Inc.\Common Data\Shared Files\Enhanced Editor has been deleted.

  4. Reinstall the Enhanced Editor:
    1. Navigate to your SAS Software Depot.
    2. Navigate to \products\eeditor__9220__win__xx__sp0__1\bundles\eeditor.
    3. Click setup.exe to install the editor.
    4. Invoke SAS again. If the error message still appears, go to the next step.

  5. Perform a manual installation of the Enhanced Editor and other components:
    1. Open Windows Explorer and navigate to c:\program files\sas\shared files\enhanced editor.
    2. With a text editor, open C:\Program Files\SAS\Shared Files\EnhancedEditor\eeditor_date_time.log.
    3. Select Start ► Run to open a DOS command prompt.
    4. Type cmd and click OK.
    5. Highlight the first launching line and press CTRL+C to copy the line.
    6. Paste the first launching line into the DOS command prompt:
      C:\WINNT\MICROS~1.NET\FRAMEW~1\V20~1.507\RegAsm.exe    C:\PROGRA~1\SASINS~1\SHARED~1\ENHANC~2
      \SASENH~1.DLL /codebase
      

      Note: Your path for Microsoft .Net Framework 2.0 could be either C:\WINNT\Microsoft.NET\Framework\v2.0.50727 or C:\Windows\Microsoft.NET\Framework\v2.0.50727.

    7. Add double quotation marks around directory paths that contain spaces and remove any extra spaces that appear between RegAsm.exe and "C:\PROGRA~1:
      C:\WINNT\MICROS~1.NET\FRAMEW~1\V20~1.507\RegAsm.exe "C:\PROGRA~1\SASINS~1\SHARED~1\ENHANC~2    
      \SASENH~1.DLL" /codebase

      Note: Your path for Microsoft .Net Framework 2.0 could be either C:\WINNT\Microsoft.NET\Framework\v2.0.50727 or C:\Windows\Microsoft.NET\Framework\v2.0.50727.

    8. Press the ENTER key. If the following "RegAsm.exe - .NET framework initialization error" appears, then repair, or uninstall and reinstall Microsoft .NET framework:
            "Please set registry key HKLM\Software\Microsoft\.NetFramework\InstallRoot to point to the .NET Framework install location" 
      
      Retry the command. If successful, then continue with remaining steps.
    9. Copy the second launching line and paste it into the DOS command prompt; add double quotations around directory paths that contain spaces, and press the ENTER key:
      C:\WINNT\system32\regsvr32.exe 
      "C:\Program Files\SAS Institute\Shared Files\EnhancedEditor\EditorControl.ocx" /s
      
    10. Test by invoking SAS.

Note: This problem can also occur on the Windows 7 operating system if you are not using the supported version of SAS (for example, SAS 9.2 TS1M0.

  • For more details about support of SAS® 9.2 on the Microsoft Windows 7 operating system, see SAS Note 34569: "SAS® 9.1.3 Service Pack 4 and SAS® 9.2 support for the Microsoft Windows 7 operating system."

  • To correct this problem in the Windows 7 operating system, uninstall SAS 9.2 and reinstall it with a supported SAS 9.2 release, as described in SAS Note 35627: "Determining your SAS® 9.2 release."

    Operating System and Release Information

    Product FamilyProductSystemSAS Release
    ReportedFixed*
    SAS SystemSAS Enhanced EditorMicrosoft® Windows® for 64-Bit Itanium-based Systems9.2 TS1M0
    Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS1M0
    Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS1M0
    Microsoft® Windows® for x649.2 TS1M0
    Microsoft Windows Server 2003 Datacenter Edition9.2 TS1M0
    Microsoft Windows Server 2003 Enterprise Edition9.2 TS1M0
    Microsoft Windows Server 2003 Standard Edition9.2 TS1M0
    Microsoft Windows XP Professional9.2 TS1M0
    Windows Vista9.2 TS1M0
    * For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.