• What changed? Your last post said error code 9, but this post says exit code 1. Looks like you're calling a different exe now.

    What mainframe? Is that just a job scheduler remotely executing a job on a Windows machine? Try logging in as the account the mainframe uses and run the job that way. If there is a problem with permissions that's the simplest way to find it.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato