Error while processing multi-segment file - Following segment redefines not found, Please check fields exist
See original GitHub issueI am trying to process a multi-segment file. Please find the copybook attached.
Code below:
val df = spark.read.format("cobol").option("copybook", "copybook-flap.txt").option("pedantic", "false").option("segment_field", "FLAP-MTHD-OVER-RIDE-NR")
.option("redefine_segment_id_map:0", "FLAP_RECORD.FLAP-ITEM.FLAP-MTHD-OVER-RIDE.FLAP-MTHDS.REDEFINE-STR1 => 1")
.option("redefine-segment-id-map:1", "FLAP_RECORD.FLAP-ITEM.FLAP-MTHD-OVER-RIDE.FLAP-MTHDS.REDEFINE-STR2 => 2")
.option("redefine-segment-id-map:2","FLAP_RECORD.FLAP-ITEM.FLAP-MTHD-OVER-RIDE.FLAP-MTHDS.REDEFINE-STR3 => 3")
.option("redefine-segment-id-map:3","FLAP_RECORD.FLAP-ITEM.FLAP-MTHD-OVER-RIDE.FLAP-MTHDS.REDEFINE-STR4 => 4")
.load("mcy_flap1_Dec19.dat")
I gave the full path for Redefines fields - FLAP_RECORD.FLAP-ITEM.FLAP-MTHD-OVER-RIDE.FLAP-MTHDS.REDEFINE-STR1
But still getting error -
Following segment redefines not found, Please check fields exist and are redefines/redefined by.
Please help!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Messages 001 - 2000 - ibi
EDA335 SEGNAME IN FILE DESCRIPTION NOT FOUND IN DATA: The cross-reference segment cannot be located in the cross-reference file. Check the CRSEGNAME spelling....
Read more >Fix list and new features for Enterprise COBOL for z/OS - IBM
This document contains a complete listing of releases, refreshes and fix packs (also known as PTFs) sorted by version for IBM Enterprise COBOL...
Read more >Template:List of M204. messages - m204wiki
M204.0001 Illegal ANALYZE command M204.0994 M204.1954
M204.0002 No ANALYZE work file M204.0995 M204.1955
M204.0003 ANALYZE done M204.0996 M204.1956
M204.0004 ANALYZE work file opened M204.0997 M204.1957
Read more >Error Messages - Micro Focus Supportline
This guide lists the error messages issued by Enterprise Analyzer, with a brief explanation of each and instructions on how to proceed.
Read more >Multics Glossary - Massachusetts Institute of Technology
An active segment is a segment, that is to say a file (see virtual memory), ... single files that are not proficient or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the update. Even I am working on resolving the issue. So far no luck. Will update if I am able to resolve the issue.
Thanks for your request. Will take a look.