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 ;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.