Job Scheduler affecting environment variable

20 pts.
Tags:
CL Program
iSeries job
Job scheduling
SBMJOB
In CL program I am using QIBM_QSH_CMD_OUTPUT environment variable to direct output to STDOUT and then overriding this to database file. This is to capture logging from sftp server, accessed via batch script. When I run the CL program using SBMJOB from command line it outputs logging to DB file. When I call the CL program from the jobs scheduler, I get no output. Is there some parameter I should use when setting up the scheduled job to ensure the environment variables behave as expected.

Software/Hardware used:
iSeries QSH

Answer Wiki

Thanks. We'll let you know when a new response is added.

Thanks everyone for replying.
I discovered that I need to change the override scope to *JOB.for the OVRDBF command for STDOUT. Somehow the default override scope works fine for SMJOB, but not when the program is called by a scheduled job.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Splat
    What does the job log show?
    7,625 pointsBadges:
    report
  • TomLiotta
    Just to make sure -- The CL program contains the code that sets the environment variable, and this is the program that is submitted with SBMJOB and also submitted through the job scheduler. Correct? Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following