That sounds like an even more complex problem. Getting macro execution properly synched with remote/local combined execution modes can be a head scrambler. Also trying to use the new %SYSLPUT macro statement can get confused by macros. I have found it is better to use the method used by the %SYSLPUT() macro that SAS provided with SAS 6.12 and early versions instead. I have a copy here (https://github.com/sasutils/macros/blob/master/syslput612.sas) that has been renamed as %SYSLPUT612() to avoid the conflict with the new statement.
... View more