Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while processing multi-segment file - Following segment redefines not found, Please check fields exist

See original GitHub issue

Issue Description

I am trying to process a multi-segment file. Please find the copybook attached.


Code below:

val df ="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")


But still getting error -

Following segment redefines not found, Please check fields exist and are redefines/redefined by.

Please help!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

eapframeworkcommented, Mar 30, 2020

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.

yruslancommented, Mar 27, 2020

Thanks for your request. Will take a look.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found