Job fails to run script with #!/bin/ksh -u on the first line.
When a userid is specified as part of the job definition, job runs script with #!/bin/ksh on the first line of the script without problem, but it fails with #!/bin/ksh -u on the first line of the script.
Keep the first line of the script as #!/bin/ksh and add the following line on the second line:
set -u