Page 1 of 1

List the content of a server folder

Posted: Wed May 29, 2013 10:46 am
by btmbig5
I would like to list the content of a specific folder on a server (like Date, Time, File Size, File Name) and save the information in a file that can be read and populate an iSeries DB2 database. Has anybody done this? Thank you. BTM.

Re: List the content of a server folder

Posted: Mon Aug 26, 2013 9:42 am
by Support_Rick
This can be done by manipulating the File List variable attributes. Just create your file list, then perform a ForEach across that File List. When looping through the file list, you can insert your file information into the DB2 (or any) table as desired.

The Attributes available to you are defined in the help text associated to the command:
Hope this helps!