04-13-2017 07:07 AM
We use the below code to submit jobs ,and we pass the macro variables across through a loop for each task.
Kindly let me know the reason for code being submitted only once (one systask) in random manner.
systask command "START ""Batch"" /wait /min
""%sysget(sasroot)\sas.exe"" -batch -nosplash
-sysin ""&run_file."" -log ""&log_file."" -print ""&lst_file."" "
Note: Loop passes the variable correctly.
04-13-2017 09:47 AM
Since you have hard code the TASKNAME and not used the WAIT option on the SYSTASK command then you could end up with two tasks running under the same name. I suspect that will cause confusion for your program.