09-20-2014 02:05 AM
I have been facing an issue with SAS 9.3 on windows server 2008. Eerytime I restart my session I loose all my keyboard abbreviations. The profile catalog is always there so I can only assume keyboard abbreviations are not saved in sasuser profile catalog. I'm aware that I can go to tools and import the kmf file but is there any way to do this through editor - by using proc import for example? so I can put the code in my autoexec.sas ?
Alternatively can someone point me to a file or a catalog where the information is saved? I have looked all over but all in vain. It doesn't seem to be a part of user profile or registry.
09-20-2014 08:01 AM
Profile would have been my first thought as well. Any chance your profile is set to read only? Can other changes (window colors or whatever) be saved in your profile?
Might want to check DM commands to see if it's possible to import the .kmf file that way.
09-20-2014 10:06 AM
According to the following post the abbreviations are actually stored in the Window's registry: LISTSERV 16.0 - SAS-L Archives
However, that doesn't address why you aren't able to save them. Is it possible that you have multiple SAS instances running when you've tried to save them?
09-23-2014 01:36 AM
Registry and Profile catalog were my first thoughts .. and I have tried saving them every which way.. I guess in SAS 9.3 they are saved in some other file. Profile catalog is only saving the changes I make in Preferences dialogue box.
09-23-2014 08:54 AM
Out of curiosity: in the sessions when you've loaded the abbreviations did you have "save settings on exit" checked in your preferences?
05-08-2018 03:04 PM
Hi, I was searching for the answer to this question and found it elsewhere in the SAS online documentation: http://support.sas.com/rnd/base/topics/abbreviations/
"To import a KMF file, select Tools > Keyboard Macros > Macros. A window opens, and at the bottom is a button for IMPORT. Select the button and navigate to where you stored the file. SAS reads it automatically."
I tried this on my machine (swapped PCs at work) and it was successful. I noted that I could select all my keyboard macros / abbreviations and export them as a single KMF file. SAS appears to have imported them correctly into the new environment.
3 weeks ago
i will test this with my colleges, if this could solve the problem to share some standard macro and code snippets in the team.