/* Utility module run at the end of batch jobs to signal end of job. Writes message to log and to stderr. */ run; options nonotes nosource; options no$syntaxcheck; %put &syserr; data _null_; file log; %let _pgm2 = &pgm %str((&sysjobid)); dt = today(); tm = time(); put "**** &_pgm2 has completed " dt date8. +1 tm time. +1 "syserr=&syserr sysrc=&sysrc ****"; file stderr; put "**** &_pgm2 has completed " dt date8. +1 tm time. +1 "syserr=&syserr sysrc=&sysrc ****"; run; options source notes;