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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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