Hi Shmuel, ballardw, and Tom, I think I figured out what was causing the issue. After Shmuel suggested maybe the log was still held by the previous script/session/OS, I started checking for consistency uses of the last DM statement on the scripts. I found that some of the DM statement at the end of some of the scripts were modified by one of the analysts using dm log 'print file = "K:\...\&mfolder\&measure.-Historic Data Run &memschema..log" replace' LOG; instead of dm 'log; file "K:\...\&mfolder\&measure.-Historic Data Run &memschema..log" replace'; Also, they didn't put the ods pdf close statement at the end of the script. So, when I submitted this one, it was okay until the subsequent scripts were submitted then the issue occurred. That's why it seemed so random. I made the fix using the DM 'log; file ....log" replace'; and haven't seen the issue since. Thank you all for taking the time to try helping me.
... View more