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 ;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.