ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to list out all objects of a library in an outfile

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

  • How to list out all objects of a library in an outfile

    Hi All,

    How to list out all objects of a library in an outfile?
    My aim is to get all save-file from library and write it on a subfile like following command.

    WRKOBJPDM LIB(MYLIB) OBJATR(*SAVF)

    OR
    Is there any way to do it.........
    OR
    Any API which will does this...!!!
    Cheers...
    Nil

  • #2
    Re: How to list out all objects of a library in an outfile

    The CL-Command DSPOBJD (Display Object Discription) allows you to list all objects (or even all files) within a library in a physical file.
    Display Object Description (DSPOBJD)
    This physical file can be read to fill your subfile.

    Another (more complicated) way is to use the API QUSLOBJ (list objects):
    List Objects (QUSLOBJ) API


    Birgitta

    Comment


    • #3
      Re: How to list out all objects of a library in an outfile

      Thanks for your reply.....
      I was looking for this one only...great

      Thanks once again.
      Cheers...
      Nil

      Comment

      Working...
      X