How to direct the output from the execution of a RC/Migrator analysis via Batch Processor to a dataset
search cancel

How to direct the output from the execution of a RC/Migrator analysis via Batch Processor to a dataset

book

Article ID: 25379

calendar_today

Updated On:

Products

RC/Migrator for DB2 for z/OS RC Compare for DB2 for z/OS Database Management for DB2 for z/OS - Administration Suite Batch Processor

Issue/Introduction

How to direct the output from the execution of an RC/Migrator for DB2 for z/OS (RCM) / RC/Compare for Db2 for z/OS (RCC) analysis submitted through
the batch processor to a dataset.

Resolution

The Batch Processor .LIST command will route the output to a dataset as follows:

  1. Add the 'DDNAME' keyword to the .LIST - .LIST DDNAME(the ddname)

  2. Preallocate a file that the DD name above will point to as FB LRECL 80.

    1. DD in the JCL: //OUTPTDD DD DISP=SHR,DSN=hlq.OUTFILE
      (Can be placed after PTIXMSG)

    2.   The .LIST command is included in the Batch Processor control cards:
      .CONTROL BPID(USERID.DB2.CNTL-xxxx) +
      LOGID(ssid) UNIT(SYSDA)
      .LIST DDNAME(OUTPTDD)
      .RESTART OVERRIDE
      .OPTION ERRORS RETRY(03) BINDERRORS
      .CONNECT ssid
  3. Where can the .LIST command be modified:

    1. In the existing Batch Processor JCL.

    2. If new, within BP, PREVIEW the JCL that will be executed and add/modify the existing statements.

The dataset will contain the Batch Processor control statements / DDL that have executed and their return codes.