Sponsored Links
Sponsored Link

sponsored links

Collapse

Announcement

Collapse
No announcement yet.

Check Creation Date of Object on IFS drive to decide wether to delete or not

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

  • Check Creation Date of Object on IFS drive to decide wether to delete or not

    Hey at all,
    I've been looking the web for several days now without being able to find a satisfying answer to my problem.
    Ideally I don't want to work with an API, and want to know if there is any functionality given within the iSeries.

    I plan to have a CL programm checking our IFS drive every night running through every single object (mostly Invoices etc.) and check the creation date in order to
    delete every document which is older than a given timespan.
    I read that there are several commands to view some attributes (CHKOBJ, WRKLNK, DSPLNK, etc.), yet there doesn't seem to be a documentation
    which describes the field names or variables those functions give back to the CL programm in order to compare the retrieved values with the condition they shall meet.

    I really appreciate any piece of advice you can share with me concerning a solution to this.
    Thanks, Mace.

  • #2
    See if this helps:
    https://www.mcpressonline.com/progra...-automatically

    Comment


    • #3
      You can use qp0lGetAttr()

      An example can be found here
      http://www.think400.dk/apier_7.htm#eks0006

      Regards
      Peder

      Comment

      sponsored links

      Collapse

      Working...
      X