I'm executing a command called 'CONCOPY' from an SQR program using the 'CALL SYSTEM USING' function. When I run the SQR using SQRW, a code value of 0 is returned and the desired output file is created in the specified directory. However, when the same SQR is run using the Process Scheduler, a code 1 is returned and no output file is created.
In the same SQR program 'CALL SYSTEM USING' is used to execute the DOS internal command 'DIR'. This particular routine produces the desired output file in the same directory specified for the 'CONCOPY' - both in SQRW and Process Scheduler.
I would like to know from experts out there which environmental element could have spelled the difference between the SQRW process and the Process Scheduler process.
Thank you!
In the same SQR program 'CALL SYSTEM USING' is used to execute the DOS internal command 'DIR'. This particular routine produces the desired output file in the same directory specified for the 'CONCOPY' - both in SQRW and Process Scheduler.
I would like to know from experts out there which environmental element could have spelled the difference between the SQRW process and the Process Scheduler process.
Thank you!