Help using Base SAS procedures

2nd SAS session is opening read-only?

Reply
Super Contributor
Posts: 279

2nd SAS session is opening read-only?

When I open a 2nd SAS session, it's read-only.  I've never noticed this before.  Did I inadvertently change some setting?  I want full access to both sessions.

Respected Advisor
Posts: 4,173

Re: 2nd SAS session is opening read-only?

Is this about opening the same EG project twice? If yes: This would be the wanted behaviour. You need to open a new or different project.

Super Contributor
Posts: 279

Re: 2nd SAS session is opening read-only?

No.  I'm opening 2 different programs.

Trusted Advisor
Posts: 2,116

Re: 2nd SAS session is opening read-only?

What is the "it" that is read-only?  The SAS program?  SAS datasets?

What else is running?  I've seen that happen when the .sas code is open in a non-sas editor.  If you are on a shared drive, it could even be another user.

Super Contributor
Posts: 279

Re: 2nd SAS session is opening read-only?

The program is read-only.  I'm the only SAS user here at the office so no one else has the ability to open it.

Trusted Advisor
Posts: 2,116

Re: 2nd SAS session is opening read-only?

I just tried that with SAS 9.3.  No problem.  I could edit and save the second .sas program.  I suspect you have that file locked by some other process.

SAS Super FREQ
Posts: 8,868

Re: 2nd SAS session is opening read-only?

And, usually, it is only the SASUSER library that becomes read-only on the second and subsequent instances. So if you are trying to write to SASUSER in the second instance, you might have an issue. You only can have 1 write-access copy of SASUSER open at a time. All subsequent instances of SAS open a read-only copy of SASUSER. This mostly impacts SASUSER.PROFILE and SASUSER.REGSTRY. The files are usually copied to WORK for the session, and if something can't be copied, you see messages about that, too. Typical messages you get in the log are:

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,

WARNING: 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

NOTE: be lost at the end of this session.

NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened

      instead.

 

Here are some Tech Support notes about the issue which might be relevant to your configuration:

http://support.sas.com/kb/13/838.html

http://support.sas.com/kb/12/502.html

http://support.sas.com/kb/13/803.html

http://support.sas.com/kb/8/538.html

cynthia

Ask a Question
Discussion stats
  • 6 replies
  • 821 views
  • 0 likes
  • 4 in conversation