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
What does the job log show?
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