ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

another way without DS ?

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

  • another way without DS ?

    I have some program like this :

    D DS
    D INTA 1 4
    D INTN 1 3P 0

    i'd like to get the value of INTN in char (INTA). and usually in program i use the :

    INTN = 9999

    Then i get the INTA as a symbolic character. (sorry I the symbols won't type when i paste here).

    so it's there another way, i get the INTA without using the Data structure and get the same value?

    Please help..


    Thank you

  • #2
    Re: another way without DS ?

    Try this:
    Code:
    inva = %char(invn)
    but inva is 4 long & invn is 3 long which means
    Code:
    inva = '0' + %char(invn)
    Regards

    Kit
    http://www.ecofitonline.com
    DeskfIT - ChangefIT - XrefIT
    ___________________________________
    There are only 3 kinds of people -
    Those that can count and those that can't.

    Comment

    Working...
    X