Returning OSCOMPSTAT in PowerShell

All questions about Control-M jobs definitions
Post Reply
User avatar
DocGoo
Nouveau
Nouveau
Posts: 73
Joined: 08 Sep 2010 12:00

Returning OSCOMPSTAT in PowerShell

Post by DocGoo » 16 May 2016 6:11

All,

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.

~~Goo

Post Reply