20 pts.
 Job Scheduler affecting environment variable
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
ASKED: October 6, 2011  2:21 PM
UPDATED: March 31, 2012  12:32 AM

Answer Wiki:
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.
Last Wiki Answer Submitted:  October 11, 2011  8:00 am  by  Alleycat   20 pts.
All Answer Wiki Contributors:  Alleycat   20 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

What does the job log show?

 5,670 pts.

 

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

 108,055 pts.