BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
PaigeMiller
Diamond | Level 26

Can I issue a DOS command in SAS by using the X command, in such a way that the resulting DOS window is either minimized, or doesn't pop up at all? Windows 7 Professional, 64 bit, SAS 9.3

Thanks.

--
Paige Miller
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

System option XMIN sounds like what you are looking for.

options xmin;

View solution in original post

6 REPLIES 6
data_null__
Jade | Level 19

I think there are some options for that but I like using the PIPE access method to execute DOS commands.

command='DIR /s';

infile dummy pipe filevar=command .....;

You can then read the output from DIR into a data set.

You can also look at SYSTASK COMMAND to execute DOS commands.

Generally I don't like X.

PaigeMiller
Diamond | Level 26

Are you saying (implying) that if I use the Pipe access method, no DOS windows pops up? Because in this particular instance, I don't really need the features you mention.

--
Paige Miller
data_null__
Jade | Level 19

Yes.  And you don't have to worry about xmin xwait xsysn etc.

ballardw
Super User

System option XMIN sounds like what you are looking for.

options xmin;

PaigeMiller
Diamond | Level 26

Thanks! Often, finding the right option isn't easy through documentation, its much easier to ask.

--
Paige Miller
Ksharp
Super User

Or another option maybe you like.

options noxwait ;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 6 replies
  • 2147 views
  • 3 likes
  • 4 in conversation