Topic "CFtpListResult::parseAsIBMMVS Support for Column Volume=Migrated"

Author Message
iokevins
[View user's profile]

Joined: 2016-06-08
Posts: 5
Location: USA
IBM z/OS MVS FTP server may return directory listing records with column Volume=Migrated (default DATASETMODE output format); from session logging with level=Debug 2:

Code:
. 2017-05-31 14:19:45.813 Volume Unit    Referred Ext Used Recfm Lrecl BlkSz Dsorg Dsname
. 2017-05-31 14:19:45.813 Migrated                                                F010917A.FFS2
. 2017-05-31 14:19:45.813 SS1010 3390   2017/05/31  1    1  FB     309 27810  PS  F010917A.FSSP


WinSCP successfully parses the latter record and displays the data set name in the GUI.

However, it does not display the record with Volume=Migrated, though it represents a transferable data set.

Function CFtpListResult::parseLine(...) seems to represent the source code which handles parsing this (via CFtpListResult::parseAsIBMMVS(...)).

If you are willing and able, would you please consider refactoring the line parsing functionality (CFtpListResult::parseAsIBMMVS, or perhaps a new helper function) to successfully parse data set listings with column Volume=Migrated (?)

What do you think (?)

Using WinSCP 5.9.5 (Build 7441) with GUI “Commander” interface, protocol FTPS, on Windows 2008 R2 Enterprise (Service Pack 1). Session log attached.

RESOURCES
CFtpListResult::parseLine
https://github.com/mirror/winscp/blob/3266c40c2d98ae659b1e8fe32a596697f8bdacf0/source/filezilla/FtpListResult.cpp#L481

CFtpListResult::parseAsIBMMVS
https://github.com/mirror/winscp/blob/3266c40c2d98ae659b1e8fe32a596697f8bdacf0/source/filezilla/FtpListResult.cpp#L2637

Thank you,

Kevin
SessionLogFile-MVS-Listings-With-Migrated-DataSets.log (19.9 KB) [Download]

Description: (none)

Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
Is the "Migrated" entry always like that? I.e. all fields empty?

I saw your question on Stack Overflow.
Though not sure, it's a good fit for the site. Super User would be more appropriate imho.
iokevins
[View user's profile]

Joined: 2016-06-08
Posts: 5
Location: USA
Question migrated to SuperUser:
https://superuser.com/q/1215077/15357

This discussion (circa 1996) seems to confirm rows with Volume=Migrated will only have Dsname field populated, for default DATASETMODE output format:

Quote:
>MVS directory lines look like this:
>
Code:
>Volume Unit  Referred Ext Used Recfm Lrecl BlkSz Dsorg Dsname
>OVH025 3380   12/29/95  1   60  FB      80 23200  PO  MICSFILE.CLIST
>USS018 3380   12/18/95  1   15  VB     259  8000  PS  NFS.DOC
>Migrated                                              OAQPS.INTERIM.CNTYIM.V1.DATA.D052093
>AIR030 3380   12/13/95  1   18  FB      80  3600  PS  OAQPS.INTERIM.PLNTNAME.DATA

>
...
>6) What is "Migrated"? Moved to tape? Is the file still available for
> download, or should I simply ignore these lines?

Migrated is moved to disk or tape archive, yes. No don't ignore them,
while the data is not immediately accessible, automatic recall of the
data is possible depending on the configuration.

Discussion link: https://groups.google.com/d/msg/comp.os.os2.networking.tcp-ip/Ea8bobxrDt0/PunxY5XIrCUJ

Note: it seems the first token may contain "Migrated" or "MIGRAT"; for reference only, another MVS FTP list parsing implementation (this was the implementation which pointed me to the discussion, above):
https://github.com/skelter/Indy/blob/master/Lib/Protocols/IdFTPListParseMVS.pas#L224

Thank you,

Kevin
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
This issue has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1540

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
iokevins
[View user's profile]

Joined: 2016-06-08
Posts: 5
Location: USA
martin wrote:
This issue has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1540

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.


Thanks! I'll test when I receive it (I don't see it yet, but you may not have sent it yet).
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
Indeed, I didn't. Sent now. Sorry.
iokevins
[View user's profile]

Joined: 2016-06-08
Posts: 5
Location: USA
Development version of WinSCP seems to work--successfully connected and (in the GUI) transferred a remote data set with column Volume=Migrated.

Thanks!
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
You are welcome. WinSCP 5.10.1 beta with the fix has been released today.
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License