It seems the agent is ignoring the command given (ie. doesn't run the command) in the %%PRECMD autoedit variable for SAP R3 jobs, just want to verify if anyone runs into that as documentation doesn't mention this behavior.
The %%PRECMD works but is in backgroud and if you dont see the result of it I suggest to do insert a Job before the CM job.
I use it only for commands like "sleep".
When I set variables or other thing prefer to run a specific job this sysout, log, etc.