ERROR: XCOMS0004E JOB nnnnnn/QSPLJOB/QERRORJOB not scheduled. Error in BCHJOB command
search cancel

ERROR: XCOMS0004E JOB nnnnnn/QSPLJOB/QERRORJOB not scheduled. Error in BCHJOB command

book

Article ID: 43303

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows XCOM Data Transport - Linux PC XCOM Data Transport - z/OS

Issue/Introduction

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?

Environment

Release: XCOM r11.0 for iSeries
Component:

Cause

The message is caused because the file being transferred most likely does not have a //BCHJOB statement.

Resolution

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) +
LOGCLPGM(*YES) MSGQ(QSYSOPR)

add commands that will be executed on the remote iSeries partner

//ENDBCHJOB

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.