ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How can I convert this to free format

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

  • How can I convert this to free format

    Code:
    c     Somekey       lookup    arrayline(X)                           99

    This is what I have
    Code:
    EMLINE = %lookup(%editc(OHPRO7:'X') + %editc(OICNT3:'X'): arrayLine:1:Y);
    Would Y in the second example be the same as X in the first?

    never mind this is it
    Code:
    Z = %lookup(%editc(OIPRO7:'X') + %editc(OICNT3:'X'): arrayLine:1);
    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
Working...
X