ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

alternate array

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

  • alternate array

    Hai all,

    am currently encounter a doudt in rpgle free format concept,

    how to retrieve or read a data from database file using alternate array concept in rpgle (using free format)
    for example if i have a db file with fields department code and description then read the description for
    a particular code
    depcde depdes
    IT Information technology
    AD Administration
    etc.........................
    -
    if any one knw the ans plz reply

  • #2
    Re: alternate array

    I guess I'm not sure where the "array" is coming from in this. Maybe I just don't understand the question...

    But, why not use SQL and select the values you need directly from the DB?

    Select DepCde, DepDes
    From (My File)
    Where DepDes = (Target Value)

    Comment


    • #3
      Re: alternate array

      Thanks for you reply and suggestion @FaStOnE

      Comment


      • #4
        Re: alternate array

        Look here.
        Philippe

        Comment


        • #5
          Re: alternate array

          @mercury TanQ ) i seen that ppt ,, i will use it

          Comment

          Working...
          X