After File Master Plus maintenance was applied batch copy job ended RC=4.
search cancel

After File Master Plus maintenance was applied batch copy job ended RC=4.

book

Article ID: 280634

calendar_today

Updated On:

Products

File Master Plus

Issue/Introduction

The batch copy job failed with following messages:

COPY,                                                                         
   INFILE(DD01),                                                               
   OUTFILE(DD01O),                                                             
   SELRECIF(2,EQ,C'0XX')

*** CAWA2101I  DDNAME DD01     records read:    5,300   
*** CAWA2101I  DDNAME DD01O    records written: 0                      
*** CAWA2532I  DDNAME DD01     no records selected - RC set to 4  

Before applying File Master Plus maintenance, this weekly copy job ended RC=0.

Environment

Z/OS 2.5

Cause

The File Master batch job option module CAWAOPTS overwritten by unmodified version.

Resolution

Either modify SELRECIF statement with scan-length parameter which current statement was omitted.

Example - SELRECIF(2,EQ,C'0XX') ->  SELRECIF(2,3,EQ,C'0XX')

Or update File Master Plus option CAWAOPTS's from BAT_RDW=N to BAT_RDW=Y. If the input file is variable-length records.

Additional Information

Please review the Topic and Link below.

Customize Options
The CAWAOPT macro can optionally be used to specify the default processing options for File Master Plus batch and online product components.
This section provides a description of the CAWAOPT keywords.

https://techdocs.broadcom.com/us/en/ca-mainframe-software/devops/ca-filemaster-plus/11-0/installing/configuring/configure-your-product/ca-file-master-plus-tasks.html#concept.dita_f4bf6e2d158ee0499f4a5e322bd6fdd0821c96f1_CustomizeOptionsOptional

BAT_RDW=N
The default RDW keyword used by batch commands. This option controls the inclusion of the 4-byte record descriptor word of variable-length records in record positions 1 - 4. The first 2 bytes of the RDW contain the record length + the length of the RDW, which is 4. This value is in hex. Bytes 3 and 4 contain low-values. Valid values are Y, N.
With RDW(Y), the RDW is made available to the current batch command and its keywords. For example, it is available to move to a specific position within a record, to query its value, or even compare it to another RDW.
The RDW is made available to the current command and its keywords. For example, it is available to move to a specific position within a record, to query its value, or even compare it to another RDW.
The default is N. To override this parameter, use the RDW operand on the batch command.