I have a problem with using SBMJOB command through programs inside the Atrium.
No matter if I submit a job using a CL program or using QCMDEXC program to do that in rpgle, I get an error message on the SBMJOB command.
If I run my program outside the atrium like running it anonymously, it works Ok, but doesn't work inside the Atrium.
Also if I run the below SBMJOB on green-screen command line, it works great, So the command doesn't have any problem.
Here is the portion of code related to the submit job command:
Code: Select all
*--------------------------------------------------------------------
* Run CL Commands from RPG
*--------------------------------------------------------------------
D QCMDEXC PR ExtPgm('QCMDEXC')
D cmd 32702A const options(*Varsize)
D len 15P 5 const
D igc 3A const options(*nopass)
cmd = 'SBMJOB CMD(CALL PGM(RVCMOVTOM))'+
' JOB(RVCMOVTOM) JOBQ(QGPL/LONGRUNQ) JOBMSGQFL(*WRAP)' ;
QCMDEXC(%trim(cmd): %len(%trim(cmd)));