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.
System option XMIN sounds like what you are looking for.
options xmin;
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.
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.
Yes. And you don't have to worry about xmin xwait xsysn etc.
System option XMIN sounds like what you are looking for.
options xmin;
Thanks! Often, finding the right option isn't easy through documentation, its much easier to ask.
Or another option maybe you like.
options noxwait ;
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!
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.