Comments (9)
@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.
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.
@rbheemana. Kindly help me
from cobol-to-hive.
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.
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.
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.
Yes it did help. Thank you so much.
I will get back to you once I start with the execution.
from cobol-to-hive.
from cobol-to-hive.
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)
- large Files HOT 3
- Variable Block Duplicates HOT 2
- V9(6) in copybook -- not able to create column HOT 14
- how to remove header and trailer from binary file. HOT 4
- Execution error HiveException: Duplicate column name HOT 7
- How to handle multiple 01 level in copybook HOT 6
- how to handle Header and Trailer from this JAR HOT 1
- Issue with redefines with picture clause (which is not group) HOT 5
- ISSUE WITH PICTURE CLAUSE S99V999 COMP-3. HOT 1
- S99 not interpreted correctly HOT 4
- Db2 to Hive - handling Comp and comp3 data , which are part of a group variable HOT 1
- S9(18) COMP-3 or greater value is returning null Value
- facing issues while importing data from mainframe HOT 3
- Field with format S9(11)V99 displays null value in hive. HOT 7
- Add support for unit Testing
- How to handle the COBOL EBCDIC file with header of 115 bytes. HOT 1
- Failing count(*) for the 1st time under beeline and also using prior table length (FB) HOT 21
- Simple For loop Does not work properly HOT 1
- S99. is converted as 3 but in mainframe it is considered as 2/SNUM
- Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobol-to-hive.