Connecting Tech Pros Worldwide Help | Site Map

List files in IFS iSeries directory

Newbie
 
Join Date: Aug 2009
Posts: 10
#1: Sep 22 '09
Hi,

I need to do a daily process that has to copy (download), all the files from a iSeries folder.

At the moment, if i know the filename i'm using the following code with the cwbx.dll

Expand|Select|Wrap|Line Numbers
  1.  Dim dt As New cwbx.DatabaseTransfer
  2.             dt.UserID = "user"
  3.             dt.Password = "password"
  4.  
  5.             dt.Download("iSeriesName", "dir/filename", "outputfile")

But how can i list all the files that exist in that dir, so that i can copy/download them all ?

Thank you
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#2: Sep 22 '09

re: List files in IFS iSeries directory


I have no idea what a cwdb.dll is but...

Read up on MSDN for the System.IO.Directory class
Specifically the "GetFiles" method
http://msdn.microsoft.com/en-us/libr...directory.aspx
Newbie
 
Join Date: Aug 2009
Posts: 10
#3: Sep 22 '09

re: List files in IFS iSeries directory


Quote:

Originally Posted by tlhintoq View Post

I have no idea what a cwdb.dll is but...

Hi cwbx.dll, is an API to access iSeries, like reading DataQueue, transfering files etc.

Since the iSeries file system is in IFS, i can't get the dir information.

And i really need to know the files names of that dir.

Thank you
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#4: Sep 22 '09

re: List files in IFS iSeries directory


Use the namespace/method I told you about to get the file names, then pass them to your dll
Newbie
 
Join Date: Aug 2009
Posts: 10
#5: Sep 22 '09

re: List files in IFS iSeries directory


I can get the filenames from a fat or ntfs directory, but to get those from the IFS system that iSeries use is not possible using the method's you've told me.

that's my problem at the moment
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#6: Sep 22 '09

re: List files in IFS iSeries directory


In your use is IFS
Installable File System (OS/2 circa 1986 thru to NT)
or Integrated Files System (Linux)
or something else completely

Does this help at all?

Is IFS the files system on the iSeries server line?
Newbie
 
Join Date: Aug 2009
Posts: 10
#7: Sep 22 '09

re: List files in IFS iSeries directory


iSeries Integrated File System (IFS)
Like in this Forum thread, i can't use as a windows dir.

As i can use API for download, i would like to use the same API to get the filename list, i just can't find a way to do it :(
Reply