Announcement

Collapse
No announcement yet.

ASCII character conversion

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

  • ASCII character conversion

    What method would I use to convert a character that has a 23024{ into a numeric?

    This would come out to -2302.40

    If last character = "0" Then place a "}" at the end.
    If last character = "1" Then place a "J" at the end. If last character = "2" Then place a "K" at the end.

    etc.

    Thanks,

    DAC

  • #2
    Re: ASCII character conversion

    can you please describe in more detail what you are trying to do.
    where is this data coming from and where is it going?

    thanks
    jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: ASCII character conversion

      Put it in a DS as a char field. Overlay a signed numeric (type S) field defined as 2 decimals.

      Comment

      Working...
      X