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
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
Listing files on the IFS
Collapse
X
-
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
-
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
Comment