In order to properly bring the oscompstat code back from your PowerShell script, you must include this line as the last parameter in the SET tab.
; EXIT $LASTEXITCODE
Yes, it begins with a semi-colon. This tells the PowerShell executable that there are no more parameters.
The next executable command is EXIT and it brings the last exit code back to CM.
All questions about Control-M jobs definitions
1 post • Page 1 of 1