Help using Base SAS procedures

canot save my own defined keys

Reply
Contributor
Posts: 51

canot save my own defined keys

Hello

I use to define my own keys using method as described in here (SAS Key Definitions). It is actually pretty straightforward and works fine on my previous sas version. However, as I recently reinstall sas(9.3), I got following error message:

ERROR: File I/O Error.  Unable to permanently save KEYS settings.

ERROR: Cannot open entry DMKEYS.KEYS for write access - catalog SASUSER.PROFILE is opened for

       read access.

as a result, the defined keys will NOT be saved.

I googled on the internet,;but there seems no related information. Can anyone help me to solve this problem? Thanks a lot.

Regular Contributor
Posts: 180

Re: canot save my own defined keys

Make sure you have WRITE access/permission to your SASUSER library.

Contributor
Posts: 51

Re: canot save my own defined keys

Thanks. How can I make sure I have the WRITE access?

Regular Contributor
Posts: 180

Re: canot save my own defined keys

It depends on where your SAS Foundations was installed and how it was set up. In a Windows Server? In a UNIX Server? In your Windows Workstation?

The SASUSER Library is located in a disk Directory which by definition must be unique for every SAS user. In this directory SAS saves changes to the configuration (like the KEYS in your case) in a sas file named SASUSER.PROFILE

Sometimes if the same user opens two sessions of SAS, the first session takes write access to SASUSER and the second can only access SASUSER as Read-only. In this case the user gets the followng messages in the log:

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.

So in short I suggest you to Ask your SAS Administrator.

Ask a Question
Discussion stats
  • 3 replies
  • 265 views
  • 0 likes
  • 2 in conversation