BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
SASuserlot
Barite | Level 11

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.

SASuserlot_0-1689442152771.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

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.

View solution in original post

4 REPLIES 4
Tom
Super User Tom
Super User

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.

SASuserlot
Barite | Level 11

Thank you,  I messed up the 'semicolon' when I used Ctrl +Z, so it  read to " dm  log clear; option xxx;"

Tom
Super User Tom
Super User

@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.

SASuserlot
Barite | Level 11

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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 835 views
  • 3 likes
  • 2 in conversation