File Definition Manager does not display the Tree after XML file created for IMS Copybook parsing.
search cancel

File Definition Manager does not display the Tree after XML file created for IMS Copybook parsing.

book

Article ID: 240759

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Followed the below steps in File Definition Manager and unable to see the Tree structure after creating a definition file

  1. Extracted the Copy Book
  2. Created a Configuration File
  3. Created a New Definition
  4. Added the Copybook
  5. Parse Copybook
  6. Save 
  7. Display Tree (Here is the problem ---> Tree does not display.)

Environment

Release : All versions

Component : CA File Definition Manager

Cause

In Step 5, when parsing the copybook, gives the below error which caused the issue.
----------------------
processing copybook C:\Test Data Manager Mainframe DB2 Add On MVS\CopyBooks-33101629\AxTest.CPY
line 2:54 mismatched input ',' expecting DOT
possible lines in error:
       01  Day-REC-TABLE.                                 
           05  Day-REC-TABLE OCCURS 10 TIMES INDEXED BY MS-FLL,  
                                                                                                      MD-DATA
Parser error 
--------------------------

Resolution

Removing the comma in the Copybook should resolve the issue. 

Original data in Copybook:
       01  Day-REC-TABLE.                                 
           05  Day-REC-TABLE OCCURS 10 TIMES INDEXED BY MS-FLL,  
                                                                                                      MD-DATA
Changed as below to resolve the issue:
       01  Day-REC-TABLE.                                 
           05  Day-REC-TABLE OCCURS 10 TIMES INDEXED BY MS-FLL  
                                                                                                      MD-DATA

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/test-data-management/4-9/mainframe/working-with-mainframe-files-or-ims-segments/create-an-advanced-file-layout-afl-with-file-definition-manager.html#concept.dita_0a12a0567b4b35524ceae22b06ada14e52305262_parsecopybooks

For continuation of values in COBOL don't need commas. Please see the information provided at 1.7 Continuation of Lines