Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).

MVS File List Parser

no avatar
User

bschultz

Posts

1

Joined

Tue Apr 03, 2012 9:16 am

MVS File List Parser

by bschultz » Tue Apr 03, 2012 9:51 am

Hello,
I am having trouble getting a correct listing of files (in the current working directory) for an ftp server running on an MVS operating system. This .net library is able to correctly parse the out the file name (Dsname = Data Set Name) from the LIST command using the GetFiles() function (see log snippet below). However I do not believe that some of these files are actually in the current working directory.

(Note: I am by no means an expert on MVS or the ftp protocol. However my best guess is that files marked as "Not Mounted" should not be considered in the current working directory. I do know that if you try to transfer such files, they will fail. Which has me curious why they are even in the listing at all).

Regardless, I was about to parse the result of the GetFiles("", true) function myself (which is awesome that this function exists), but I figured I would first check to see if anyone else has run into this problem.

Note: I did find one older post which looked somewhat related to this topic. However I'm not sure if true "MVS" support was ever added to the library.
http://www.enterprisedt.com/forums/view ... s&start=15

Thanks in advance for any information.

Log Output for the GetFiles() function:

DEBUG [FTPClient] 2 Apr 2012 18:55:30.105 : -->Volume Unit Referred Ext Used Recfm Lrecl BlkSz Dsorg Dsname
DEBUG [FTPClient] 2 Apr 2012 18:55:30.105 : --> GDG PBC.FF01.P0BCDNAF
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0082V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0083V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0084V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0085V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0086V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0087V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0088V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0089V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0090V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0091V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0092V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCDNAF.G0093V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->PCS036 3390 2012/03/31 1 1 FB 200 27800 PS PBC.FF01.P0BCDNAF.G0094V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->PCA221 3390 2012/04/01 1 1 FB 200 27800 PS PBC.FF01.P0BCDNAF.G0095V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->PCA041 3390 2012/04/02 1 1 FB 200 27800 PS PBC.FF01.P0BCDNAF.G0096V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : --> GDG PBC.FF01.P0BCD71D
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCD71D.G0013V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCD71D.G0014V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCD71D.G0015V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCD71D.G0016V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCD71D.G0017V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->PCS385 3390 2012/03/31 1 500 FB 320 27840 PS PBC.FF01.P0BCD71D.G0018V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->PCA112 3390 2012/04/01 1 500 FB 320 27840 PS PBC.FF01.P0BCD71D.G0019V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->PCA220 3390 2012/04/02 1 500 FB 320 27840 PS PBC.FF01.P0BCD71D.G0020V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : --> GDG PBC.FF01.P0BCRSC2
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCRSC2.G0001V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FF01.P0BCRSC2.G0002V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : --> GDG PBC.FR01.P0BCRSC2
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FR01.P0BCRSC2.G0001V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->RECVD Not Mounted PBC.FR01.P0BCRSC2.G0002V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : --> GDG POU.FF01.P0OUMBTR
DEBUG [FTPClient] 2 Apr 2012 18:55:30.106 : -->PCA077 3390 2012/04/02 1 143 FB 40 27960 PS POU.FF01.P0OUMBTR.G0001V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.146 : --> GDG TBC.FF01.P0BCDNAF
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : --> GDG TBC.FF01.P0BCRSC2
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : -->TCS085 3390 2012/03/26 1 1 FB 80 27920 PS TBC.FF01.P0BCRSC2.G0001V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : --> GDG TBC.FR01.P0BCRSC2
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : -->TCA050 3390 2012/03/26 1 1 FB 133 27930 PS TBC.FR01.P0BCRSC2.G0001V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : --> GDG TST.FF01.P0TSTJOB
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : --> GDG TST.TF01.R0TSTINC
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : -->Migrated TST.TF01.R0TSTINC.G0004V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : -->Migrated TST.TF01.R0TSTINC.G0005V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : -->Migrated TST.TF01.R0TSTINC.G0006V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : -->Migrated TST.TF01.R0TSTINC.G0007V00
DEBUG [FTPClient] 2 Apr 2012 18:55:30.147 : -->Migrated TST.TF01.R0TSTINC.G0008V00
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: MVS File List Parser

by support2 » Tue Apr 03, 2012 7:04 pm

It's the decision of the FTP server to return the unmounted files, not ours. We just return whatever the FTP server sends. Sure as anything, if we removed them, someone would quickly complain that they are not there.

Who is online

Users browsing this forum: No registered users and 22 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron