Hi all,
i applied a format to some of my variables and i want to now save the format permanently in my dataset. my log is showing error of "closing clipboard failed". what can i do please?
my format code which was sucessful is
/** CREATE VALUES FOR RACE AND SEX IN FOLDER BIOSTAT CREATED IN LIBRARY**/
PROC FORMAT LIBRARY = BIOSTAT;
VALUE $SEX_A 1 = 'MALE'
2 = 'FEMALE';
VALUE $ RACE_A 1 = 'WHITE'
2 = 'BLACK';
RUN;
this is my command to apply the format to my dataset biostat.keep and save it as biostat.keep2
DATA BIOSTAT.KEEP2;
FORMAT SEX SEX_A. RACE RACE_A.;
SET BIOSTAT.KEEP;
RUN;
thanks
my log error
closing clipboard failed
120 /** SETTING FORMATS PERMANENTLY IN MY DATASET**\
121 DATA BIOSTAT.KEEP2
122 * A NEW FILE WITH MY FORMATTED INPUTS;
123 FORMAT SEX SEX_A. RACE RACE_A.;
124 SET BIOSTAT.KEEP;
125 *THE FILE FROM WHICH WE ARE MAKING A NEW INPUT;
126 RUN;
Hi Tom, im restarted SAS and it seem to be working fine now
CLIPBOARD does not have anything to do with the code you are showing.
So there is other code you are running or other actions you are taking that could have an impact on the clipboard.
What version of SAS are you using? What operating system is it running on? How are you interacting with SAS? Are you submitting your program from the command line to run the background? Opening SAS Display Manager to work interactively with SAS? Using some other user interface to submit SAS code, like Enterprise Guide or SAS/Studio?
i am using SAS 9.4 on windows. i got it from my university and installed it on my system
How are you interacting with SAS?
Are you submitting your program from the command line to run the background? No
Opening SAS Display Manager to work interactively with SAS? No
Using some other user interface to submit SAS code, like Enterprise Guide or SAS/Studio? no
i
Those are the only three choices.
If you are using SAS/Studio then you had to open a browser and connect to some server and you will use that browser window to edit and submit your code.
If you are running Display Manager on a Windows machine it will look something like this:
I an running on display manager
Alright so how did you submit the code that has triggered the error message? Did you click on the Running Man icon in the Editor window? Hit some key? Click on the Submit from the Run menu?
Is it reproducible?
So it sounds like there is something interfering with SAS's interaction with the clipboard.
Can you copy and paste lines of code in the program editor window?
You might need to ask SAS support for help with debugging what exactly is causing that error.
Hi Tom, im restarted SAS and it seem to be working fine now
thanks
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.