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