Menu

#5 PIC 9(5).99- should be numeric

pending
None
2
2018-01-10
2015-02-25
Nick Briggs
No

I ran into a copybook which uses 9(5).99-, and apparently that doesn't get recognized as a numeric field. I'm having a go at fixing this, and if I succeed I'll pass on the changes.

Related

Feature Requests: #5

Discussion

  • Bruce Martin

    Bruce Martin - 2015-02-25
    • assigned_to: Bruce Martin
     
    • Nick Briggs

      Nick Briggs - 2015-02-26

      Indeed that was where I had got to. It's not as easy as I had hoped (I fixed checkPictureNumeric to accept that type of picture, but they came back as right-justified decimals (type 6) instead of type 10), so I don't think the conversion would have happened correctly... but I think it's doable.

      While I'm working on that (on my own time) I'm adding a special case to my own code that checks for fields with trailing "-" and if they're otherwise parseable as Java numbers... do so.

      -- Nick

      On Feb 25, 2015, at 3:11 PM, Bruce Martin bruce_a_martin@users.sf.net wrote:

      assigned_to: Bruce Martin
      Comment:
      Will let you have a look at it,

      If you want a hint, have a look in:

      net.sf.JRecord.Types.Type.CommonCode method checkPictureNumeric
      [feature-requests:#5] http://sourceforge.net/p/jrecord/feature-requests/5 PIC 9(5).99- should be numeric

      Status: open
      Group: Next_Release_(example)
      Created: Wed Feb 25, 2015 07:06 PM UTC by Nick Briggs
      Last Updated: Wed Feb 25, 2015 07:06 PM UTC
      Owner: Bruce Martin

      I ran into a copybook which uses 9(5).99-, and apparently that doesn't get recognized as a numeric field. I'm having a go at fixing this, and if I succeed I'll pass on the changes.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/jrecord/feature-requests/5/ https://sourceforge.net/p/jrecord/feature-requests/5
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions

       

      Related

      Feature Requests: #5

  • Bruce Martin

    Bruce Martin - 2015-02-25

    Will let you have a look at it,

    If you want a hint, have a look in:

    • net.sf.JRecord.Types.Type.CommonCode method checkPictureNumeric
     
  • Bruce Martin

    Bruce Martin - 2015-02-26

    There will need to be changes in getTypeIdentifier in basic conversion

    and finally there is a bug in the class TypeSignSeparate that needs to fixed. It only affects the updating of fields; I will do this.

    Correction TypeSignSeparate is correct

     

    Last edit: Bruce Martin 2015-02-26
  • Bruce Martin

    Bruce Martin - 2018-01-10
    • status: open --> pending
     

Anonymous
Anonymous

Add attachments
Cancel