SASUSER.PROFILE and/or SASUSER.REGSTRY messages might be displayed in the log window when you start SAS on Windows operating environments


After you start SAS® 9.4 or earlier on the Microsoft Windows operating system, the SAS log might contain one or more of the following messages:

NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened instead.
NOTE: All profile changes will be lost at the end of the session.
NOTE: The catalog repair process is complete for SASUSER.PROFILE.CATALOG.
NOTE: The catalog repair process is complete for SASUSER.PROFILE2.CATALOG.
ERROR: Insufficient space in file SASUSER.PROFILE2.CATALOG.
ERROR: Insufficient space in file SASUSER.PROFILE.CATALOG.
NOTE: Unable to open SASUSER.REGSTRY. WORK.REGSTRY will be opened instead.
NOTE: All registry changes will be lost at the end of the session.
WARNING: Unable to copy SASUSER registry to WORK registry. Because of
this, you will not see registry customizations during this session.
NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened instead.
NOTE: All profile changes will be lost at the end of the session.
NOTE: This SAS session is using a registry in WORK.  All changes will
be lost at the end of this session.

These messages indicate that customizations will not be available if users made any customizations, such as adding key definitions, setting up automatic LIBNAME, changing the default window size, recently used file list, and so on.

This error can occur in the following scenarios:

To check the cause, do the following:

1. Close all SAS Sessions and navigate to the Task Manager ► the Processes tab to verify that no SAS.EXE sessions are running. 

2. Open only one SAS session to check whether the error occurs.

3. If the error still occurs, submit the following SAS code: 

PROC options option=RSASUSER; run;

4. The log might show the following:

RSASUSER   Open SASUSER library as READONLY

If needed, you can remove the -RSASUSER option from the \nls\en\sasv9.cfg file or from the start-up command. Alternatively, if you open multiple SAS sessions at the same time and require customizations in all SAS sessions, keep this option. Then, the SASUSER file messages are expected in each SAS session start-up log. 

5. The log might show the following:

NORSASUSER Opens the Sasuser library in Write mode. 

If the SAS log still displays the message about being unable to open SASUSER.PROFILE, this indicates that your SAS Profile catalogs are corrupted or inaccessible. 

If your SAS Profile catalogs are corrupted or inaccessible, then do one of the following:

To rename the existing SAS Profile catalogs, complete the following tasks.

  1. First, determine where your SASUSER files are located:
    1. Open SAS.
    2. In the SAS Explorer window, double-click Libraries.
    3. Right-click SASUSER and select Properties.
    4. In SAS®9 and later, make note of the drive letter and path that is displayed under Levels.

  2. Rename the SAS Profile catalog files and/or Registry file:
    1. Exit all SAS sessions.
    2. Through Windows Explorer, go to your SASUSER directory, as determined above.
    3. Rename the following files, if they exist. The third file exists for SAS® 9.2 and later only:
      • profile.sas7bcat to profile.old
      • profile2.sas7bcat to profile2.old
      • profbak.sas7bcat to profbakold.old

        If a dialog box is displayed that says that the file will become unusable, click OK.

    4. If the error messages mention SASUSER.REGSTRY and WORK.REGSTRY, then also rename regstry.sas7bitm to regstry.old.
    5. Restart just one SAS session to confirm that the message no longer occurs.

To redirect SASUSER to a different folder, do the following: 

1. Close all SAS Sessions.

2. Back up the SASv9.cfg file before editing.

The default locations for SAS 9.4 are as follows:

3. Right-click Notepad and select Run As administrator.

    1. In Notepad, choose File ► Open and change the file types from *.txt files to *.* All files.
    2. Navigate to and open the SASv9.cfg file, as noted above.

4. In the SASv9.cfg file, locate the line that starts with -SASUSER. Change the path to a new folder, such as the following:

 -SASUSER "C:\SASUSER"

OR

-SASUSER "C:\users\YOURID\My SAS Files"

 Note: YOURID is the USERID used to log on to this Microsoft Windows machine.

5. Save the file and close Notepad. Verify that the changes are saved.

6. Open only one SAS session to confirm that the message no longer occurs.