Chris
would a satisfactory alternative be to add the E.G. macros to the sasautos environment where the batch executes?
Something like [pre]filename EGmacros 'path to the EG macros' ;
option %addoptn( sasautos, EGmacros );[/pre] (macro addoptn is defined in Sample 24841 at
http://support.sas.com/kb/24/841.html)
This could appear at the top of deployed code, in an autoexec or be replaced by a user/batch config extra like [pre]
-set egmacros "path to the EG macros"
-append sasautos egmacros [/pre]
or is this what "Export All Code" implements?
PeterC