Hi
Wouldn't this just be to collect the highest exit code of the SAS programs you're submitting (as part of the dos script).
As I understand it each of these programs is submitted in batch (within this .bat file). So these are a couple of child processes and there won't be a common SAS macro variable around as every single job runs in its own environment.
Alternatively you could use the Windows Task Scheduler or LSF (if installed at your site) to handle job execution and error conditions.
HTH
Patrick
... View more