Skip to main content

XFD Date Directive parse error

  • February 15, 2013
  • 0 replies
  • 0 views

This article addresses what to do when an XFD Directive does not check to ensure the Date mask matches the Picture clause.

Problem:

The Compiler $set createxfd (xfd-directory=C:\\...) Directive does not check to ensure that the Date mask matches the COBOL Picture clause. This results in parse errors with MFXDBC when loading the resultant XFD into the System Catalog.

For example, the following will compile and build the XFD without an error reported. This generates a parse error with MFXDBUTIL.bat.:

$xfd date=yyyymmdd 
   03 BMRT-PAYEE-DOB PIC 9(9) COMP.

Resolution:

In order to resolve this, either modify the Date directive or the COBOL Picture clause so that they match, as follows:


$xfd date=yyyyymmdd
03 BMRT-PAYEE-DOB PIC 9(9) COMP.

or


$xfd date=yyyymmdd
03 BMRT-PAYEE-DOB PIC 9(8) COMP.

Incident Number: 2278907






Date: 18 May 2009

Name: Angela Clark

Description of change:
Date:

Name:

Description of change:

Old KB# 14373