ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

getMetaData Example

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

  • getMetaData Example

    Trying to use RPGILE to obtain a DB2 metadata resultset. Does someone know of a DB2 RPGILE getMetaData example. Do I first have to get a "select" result set before using getMetaData... Trying to get columns and data attributes. Similar to DBU.

    Or can it be built without a beforehand result set. Thank You in advance.

  • #2
    Not sure what exactly you are looking for. If you want got get column information for a specific table or view, you may access the SYSCOLUMNS catalog view (with SQL)

    Comment


    • #3
      I think getMetaData is a java method that's part of DB2. I had not heard of it before, so I don't know what it can return: https://www.ibm.com/docs/en/i/7.3?to...data-interface

      Comment


      • #4
        Thank You Gentlemen. Im new at this site. Yiu got me steered in the right direction.

        Comment

        Working...
        X