09-10-2014 09:15 AM
I have a question about the x or %sysexec command options .
Is possible to use these commands so as not appeared cmd window?
I use them in batch sessions very often, and they hinder my work.
Thank you for your help.
09-10-2014 09:53 AM
I would suggest replacing any X commands with data _null_ steps instead. For %SYSEXEC() you might need to check what else the program is doing as it might not be an appropriate place to introduce a step boundary.
x echo hello ;
infile "echo hello" pipe;
09-10-2014 11:19 AM
%let log = -log "&CodePatch"; or %let log = -nolog;
%sysexec start /high sas.exe -icon -noterminal -nosplash -noxwait -noxsync -CONFIG
"C:\Program Files\SAS\SASFoundation\9.2\SASV9.CFG" -SYSIN "&CodePatch._GlobalControl_1.sas" &log;
09-10-2014 12:03 PM
If you are trying to use this to run an asynchronous process then data _null_ step is NOT what you want.
To your original question you probably want to set the option NOXWAIT to prevent leaving the command window open. You might also look at NOXSYNC.
Also did you try the SYSTASK command instead?
02-24-2015 01:55 PM
I am looking at the %CMS command which is similar to the x command and I am having difficulties getting started. I am trying to pull data from AVAYA cms and don't know how to write the code nor can I find documentation. Do you have any idea how the code might look?
09-10-2014 01:05 PM
Do you search for adding the -nodms option for the batch script so the dms system will not come SAS(R) 9.3 System Options: Reference, Second Edition
02-24-2015 03:51 PM
The CMS is an oldy: Statements : CMS (v8 and esa/cms dedicated). A shell escape for interactive typing is not well accepted these days
You have to decide what you are needing.
a/ only a start of some program without any feedback on the results (asynchroon processin) tha using noxwait
b/ starting a program and needing the results/feedback than use the pipe approach.
c/ some system are support a proo setup for calling programs.
As you are trying to pull data form AVAYA CMS start at that side finding the technical description of that product retrieving data.