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

Issue/Introduction

Performing 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

XCOM™ Data Transport® for AS/400 i5/OS

Cause

The message happens 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:

  1. 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)
  2. Add commands that will be executed on the remote iSeries partner
  3.  Specify
    //ENDBCHJOB
  4. You will need the //BCHJOB and //ENDBCHJOB in order for the iSeries to identify it as a batch job.
  5. Make sure to have the correct JOB and JOBD
  6. Once you have the source file ready you can then issue your XCOM Send Job transfer.