Comments (4)
Does this fix pic_V999
from txrrc_data_harvest.
Reviewing work completed by @skylerbast in Cobol_types Comp3 function, the pic_signed function should be able to handle this request. Unknown how it unpacks the fields to create the correct decimal places.
from txrrc_data_harvest.
You are referring to the Gas or Oil Production ledgers such as the ones described here, right? Unfortunately the pic_signed
function won't work, we'll have to add a new one to handle COMP-3. The function you referred to in my repo should work with minimal modification. I'll make a PR and add it shortly.
The reason the pic_signed
function doesn't work is because the "signed" data items aren't compressed like the COMP-3 ones are; the signed numbers are stored as the EBCDIC representation of the numerals and the sign is overpunched (1,234 would be stored as 0xF1F2F3C4
, and -1,234 would be stored as 0xF1F2F3C4
for example). Therefore, to hold an digit number, the signed field must be
bytes in size. So there's a small bit of space saved by overpunching the sign, but nothing huge. By contrast, COMP-3 numbers store the digits as their decimal values (rather than the code representing the digit's numeral), and adds a nibble at the end to represent the sign (1,234 would be stored as
0x01234C
and -1,234 would be stored as 0x01234D
). To store an digit number, the COMP-3 format requires
bytes.
from txrrc_data_harvest.
Started new branch to try and solve the addition of comp3
from txrrc_data_harvest.
Related Issues (17)
- Identify the codec for the IBM mainframe files that can be read in Python HOT 2
- Longitude not being recognized as negative HOT 4
- Change the dbf900_formats section to work with bytes instead of string to keep lat-long accuracy. HOT 2
- Preserve original entry of date infomation along with conversion
- Oil Production Layout HOT 3
- bad add: Comp-3 Function HOT 1
- Request for how to setup to start helping with development. This should be in the wiki and have links to things like Anaconda, Github, and basic Python resources. HOT 5
- Gas Production Layout HOT 2
- Testing file to read data from gas ebcdic file to pandas dataframes HOT 2
- Workflow documentation? HOT 1
- TXRRC file location changes HOT 2
- Request: Add support for working with Polars (in addition to Pandas) HOT 2
- Request: Add support for installing via `pip` by publishing to PyPi HOT 1
- Create definition libraries for all 28 sections in the dbf900.ebc.gz file HOT 7
- Create script that tests the definitions for the files and reads the data to something that can be loaded to SQL. HOT 7
- supporting systems with limited memory. HOT 2
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 txrrc_data_harvest.