You may need to write a program using the macro variables that Chris suggested. Batch sas will go into syntax check mode when it finds an error. Various return codes issued by sas can be found at;
http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a000208995.htm
You would need to add a condition to your code like (not tested by myself though);
If &syserr eq 3 then do;
options NOSYNTAXCHECK;
end;
or the following may work also
%macro resetSysErr();
%let syserr = 0;
%mend resetSysErr;
and in your code-
if &syserr eq 3 then do;
put 'WARNING: xml file &filename returned errors.';
call execute('%resetSysErr();');
end;
I might try the above tomorrow at work to see if that works. Let me know if you have success.
Message was edited by: Cameron Lawson