I am not sure, if this is the right location to post ( if not please direct me). As I know I did not put any extra code in my program. however, I suddenly started seeing this pop-up window whenever I ran the program. Can anyone have an idea, of what triggers to SAS option environment window? thank you.
The way to open that window is to run the OPTIONS command (which is different than the OPTIONS statement.)
The way to run a command from a program is to use the DM statement.
So look for a line like this in your program:
dm "options";
Perhaps you have unbalanced quotes and it has caused a DM statement to not close so that following OPTIONS statement is getting taken as one of the commands to be run by the DM statement.
The way to open that window is to run the OPTIONS command (which is different than the OPTIONS statement.)
The way to run a command from a program is to use the DM statement.
So look for a line like this in your program:
dm "options";
Perhaps you have unbalanced quotes and it has caused a DM statement to not close so that following OPTIONS statement is getting taken as one of the commands to be run by the DM statement.
Thank you, I messed up the 'semicolon' when I used Ctrl +Z, so it read to " dm log clear; option xxx;"
@SASuserlot wrote:
Thank you, I messed up the 'semicolon' when I used Ctrl +Z, so it read to " dm log clear; option xxx;"
You should probably not be putting DM commands into your programs. It will make it very hard to run those programs as stand alone jobs or with other interfaces like SAS/Studio that do not support Display Manager.
If you want to easily be able to do things like clear the log then you can use the KEYS window to make that functionality to a key stroke.
Thank you. I usually write them when I am running the program while doing the modification and running over and over on a particular day. end the end, I delete that code.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.