Trying to perform a SEND JOB transfer from one iSeries system to another iSeries system and the transfer fails with message "XCOMS0004E JOB nnnnnn/QSPLJOB/QERRORJOB not scheduled. Error in BCHJOB command". Why and how can this be corrected?
Release: XCOM r11.0 for iSeries
The message is caused because the file being transferred most likely does not have a //BCHJOB statement.
When you perform a SEND JOB you are sending batch statements to be executed on the remote/partner system. You need to make sure that the batch statements in this case comply to the iSeries. So, you would need to do the following:
- you need to create a source file member on your iSeries system and it needs to contain batch statements. Here is a simple sample of what you need:
//BCHJOB JOB(XCOMJOB) JOBD(XCOM2/XCOM) LOG(4 00 *SECLVL) +
add commands that will be executed on the remote iSeries partner
As you can see you will need the //BCHJOB and //ENDBCHJOB in order for the iSeries to identify it as a batch job. Make sure to have the correct JOB and JOBD
- once you have the source file ready you can then issue your XCOM Send Job transfer.