ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Moving a character into a numeric field

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Moving a character into a numeric field

    I am trying to move a character ' 899' into a 7,2P numeric field. What is the most effective way in free format? I tried a Eval but can an error.

    Thanks,

    DAC

  • #2
    Re: Moving a character into a numeric field

    Hi Dac:

    This should work:
    Code:
    CAR   = %Dec(CR:3:0)
    CR is the alpha version

    You might want to put that in a monitor block to ensure no errors

    Best of Luck
    GLS
    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

    Comment

    Working...
    X