Unconfigured Ad Widget

Collapse

Listing files on the IFS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • J.Wells
    Junior Member
    • Sep 2024
    • 598

    Listing files on the IFS

    There are api's that will do this. However, I have found that a quick and dirty solution is to use ftp and the DIR command with (DISK. HTH, Joe
  • elassiter@coresource.com
    Junior Member
    • Sep 2024
    • 21

    #2
    Listing files on the IFS

    please direct me to the native IFS API's, all I've found are C/Java type API's for IFS.

    Comment

    • J.Wells
      Junior Member
      • Sep 2024
      • 598

      #3
      Listing files on the IFS

      The example I found on the internet was written by Peter Connell in 1999 and uses the following api's - lstat, opendir, readdir, and closedir. I believe this is the source I found - http://www.ediconsulting.com/dir.zip - which was referenced here - http://www.as400pro.com/TipsIFS.htm#2 . These are the C type api's, but they work fine in rpg. HTH, Joe P.S. Looking at little closer at http://www.as400pro.com/TipsIFS.htm#2 show a reference to some IFS tools at EASY400 that look like what you want.

      Comment

      • elassiter@coresource.com
        Junior Member
        • Sep 2024
        • 21

        #4
        Listing files on the IFS

        I need to obtain a list of files and their creation date from an IFS directory to do some processing on the native AS/400. I haven't seen anything that supports this. IFS API's don't appear to be able to be performed natively(looks like only from C/Java pgms etc.) HFS API's don't work with /root, etc. (only with QDLS and QOPT, as I don't want to write an endless amount of Exit programs), DSPLNK only generates a listing *PRINT only. If the IFS is integrated, where is the support???? Any help would be appreciated.

        Comment

        • Guest.Visitor

          #5
          Listing files on the IFS

          You can also use QShell commands to get a list: QSH CMD('ls /home/user > + /qsys.lib/qgpl.lib/lsoutput.file/lsoutput.mbr') This creates a "report" in file QGPL/LSOUTPUT(LSOUTPUT). --Bruce

          Comment

          Working...
          X