GithubHelp home page GithubHelp logo

Comments (4)

mlbelobraydi avatar mlbelobraydi commented on July 21, 2024

Does this fix pic_V999

from txrrc_data_harvest.

mlbelobraydi avatar mlbelobraydi commented on July 21, 2024

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.

skylerbast avatar skylerbast commented on July 21, 2024

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.

mlbelobraydi avatar mlbelobraydi commented on July 21, 2024

Started new branch to try and solve the addition of comp3

from txrrc_data_harvest.

Related Issues (17)

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.