Hello Gomathi,
Thank you for contacting the Delphix community forum.
I think the issue with the copybook supplied is the formatting.
Delphix supports common COBOL Copybook conventions for ingesting copybooks into a file format for masking. There are several additional file format rules that must be adhered to in order to ingest the copybook. Considerations to assure desired masking result are detailed below.
Copybook File Format considerations/requirements:
- Field Labels in the copybook must be unique
- Copybook file format must contain an "01" level which begins in column 8 of the file ingested to the file format. Lower levels should be indented below the 01 level (each lower level should be indented 4 spaces from the previous level).
- Redefines clauses should be applied to groups/labels at the same level (e.g. if parent record/group is at "05" level child record/group should be "05"
- SKIP statements in the copybook should be removed
Here is an example:
Please let us know if this helps.
Thank you
Adam
------------------------------
Adam Smith
Senior Technical Support Engineer
Delphix
------------------------------
Original Message:
Sent: 08-23-2021 05:44:08 AM
From: Gomathi B
Subject: Masking - File Format copybook
I am trying to upload the below copybook under File Format -> Import Format -> Copybook -> selecting this text file .But the Upload fails with the error message "Error - Failed to parse Mainframe Dataset file. Please ensure that the content of the Mainframe Dataset format is well-formed."
Can someone please let me know what is missing in the copybook.I have been going through the delphix masking docs for a while but could not get much information on what is this error message means/what is the exact format expected for a Mainframe copybook to be uploaded successfully in the Masking Engine.
01 CS-CUSTOMER-RECORD.
10 PERSON-FIRSTNAME PIC X(20).
10 PERSON-LASTNAME PIC X(40).
10 PERSON-ADDRESS1 PIC X(50).
10 PERSON-CITY PIC X(20).
10 COMP-PHONE PIC X(12).
Thanks.
------------------------------
Gomathi B
Community Member
Sandhata Technologies Limited
------------------------------