Giter Club home page Giter Club logo

Comments (3)

jaysara avatar jaysara commented on August 15, 2024 1

Great ! Awesome. Thanks. That worked.

from cobrix.

yruslan avatar yruslan commented on August 15, 2024

Hi, @jaysara ,

please, try with

.option("variable_size_occurs", "true")

and let me know. If it still doesn't work, I'll try to reproduce to ensure the behavior is as expected.

from cobrix.

pinakigit avatar pinakigit commented on August 15, 2024

03 NAME-SEGMENT
OCCURS 99 TIMES DEPENDING ON MAP-SEG-CNT-NAME.
05 NME-PFX-CDE PIC XXXX.
05 FRST-NME PIC X(20).
05 MIDL-NME PIC X(20).
05 LAST-NME PIC X(32).
05 GENRTN-NME-SFX-CDE PIC XXXX.

With .option("variable_size_occurs", "true"), it comes as an array of NAME-SEGMENT with the elements inside it. Is there a option to faltten it i.e. instead of NAME-SEGMENT coming as an array, can we have only the below comes 99 times in the layout. If one record has MAP-SEG-CNT-NAME as 9 then there will be 99 occurence with 9 occurences of the below fields having values as it will be present in the i/p file and rest of the 90 occurence having NULL values. Similarly if another record has MAP-SEG-CNT-NAME value 82 then 82 occurence of the below fields will have values and 8 occurence have NULL values. Always the file will have 90 occurence of the below fileds instaed of NAME-SEGMENT array.

           05 NME-PFX-CDE PIC XXXX.
           05 FRST-NME PIC X(20).
           05 MIDL-NME PIC X(20).
           05 LAST-NME PIC X(32).
           05 GENRTN-NME-SFX-CDE PIC XXXX.    

from cobrix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.