ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Delete a PDF file from a IFS path

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

  • Delete a PDF file from a IFS path

    I have the IFS path, folder name and the PDF file name. I need to lock and delete the PDF file from the IFS folder conditionally, hence how do you chain /check existence of a IFS pdf file from a path? how it can be achieved via CL/RPG programs? any pointers or old posts would be helpful as I am a newbie in IFS

  • #2
    Re: Delete a PDF file from a IFS path

    Originally posted by bivasmi
    I have the IFS path, folder name and the PDF file name.
    Can you show us an example of what you have? Does the PDF file name change while the folder remains the same each time your program runs?

    There can be some differences between a "folder" and a "directory". Do you know if this is a "folder" in the /QDLS file system? A "folder" in /QDLS might potentially involve some older restrictions.
    Tom

    There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

    Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

    Comment


    • #3
      Re: Delete a PDF file from a IFS path

      The CL command RMVLNK will delete ifs files.

      CPFA0A9 - Object not found escape message will be returned if object does not exist.

      Jim

      Comment

      Working...
      X