GithubHelp home page GithubHelp logo

Comments (9)

datawarlock avatar datawarlock commented on May 29, 2024

@rbheemana - that is a great idea on the adding inputs for what you wanted to convert the characters to. When I was running my processes I came across the newline and carriage return with the issue. I believe it may also occur for some other characters as well. It may be a good idea to have the process in some sort of list of characters that need to be converted so it is easy to add to in the future.

One other thing I was thinking about was if we add the ability to choose the character we are replacing with (in my case I used space) it would probably be good if it was something set as a table property so that it could be different if you had multiple tables with different requirements. Just a thought on that.

If there is anyway that I can help with any of this let me know. This serde has been a HUGE help for me and I would like to return the favor any way that i can.

from cobol-to-hive.

tejasbharambe avatar tejasbharambe commented on May 29, 2024

As of now, what I know is that there is nothing like '/n' or newline character in ebcdic file. So how to handle that type of conversion at run time.
Please help me.

from cobol-to-hive.

tejasbharambe avatar tejasbharambe commented on May 29, 2024

@rbheemana. Kindly help me

from cobol-to-hive.

rbheemana avatar rbheemana commented on May 29, 2024

Please be specific, do you want deserialized hive table to have carriage returns? Or u want to know what happens when carriage return is present in the ebcdic file? Like '\n' present in the file. Are you facing any issue? If yes let me know source input and output.

from cobol-to-hive.

tejasbharambe avatar tejasbharambe commented on May 29, 2024

Hello, First of all thank you for the reply. Actually we are designing a SerDe for ebcdic to ascii conversion. This is our project for final year.  We haven't started with the execution. Right now we are in the research phase. And what our mentor told is "in ebcdic file format suppose for Eg. Ram123text456 now. Suppose inin our cobol layout we have defined something has name(4) characters and number (3) integer. So in ebcdic file there is no \n which will tell me ohk after ram123 new line is beginning. So how to handle that issue.
I m not sure about this. 

from cobol-to-hive.

rbheemana avatar rbheemana commented on May 29, 2024

So mainframe files are 2 types. Fixed length and variable length. So for fixed length we will length value to determine end of line, for vb file there will be length value stored in the beginning of each record in 4 bytes called RDW. We read this byte and determine length and find end of line.

Hope this helps.

from cobol-to-hive.

tejasbharambe avatar tejasbharambe commented on May 29, 2024

Yes it did help. Thank you so much.
I will get back to you once I start with the execution.

from cobol-to-hive.

tejasbharambe avatar tejasbharambe commented on May 29, 2024

from cobol-to-hive.

rbheemana avatar rbheemana commented on May 29, 2024

I believe this is no longer an issue. Please reopen the issue if anyone has data related to it.

from cobol-to-hive.

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.