MVS Support (General questions)
1) I have been able to use the PreTranslateCommand event to get listings of MVS flat files and PDS members via ListDir and subsequently ListNames by changing the command sent using FTP. I see a reference to dlx1.DirFormat = fmtMVS and while it does not error in my program I am not sure what benefit it gives or what methods I use to take advantage of it? I bought DLX last week so I think I have the most current release.
2) While I saw a reference to line end conversion I did not see any reference to an EBCDIC to ASCII conversion process. If I get a file from an MVS source is there a way to convert the data with DLX or do I do it myself? Haven't as yet coded anything to do gets or puts.
Thanks
Re: MVS Support
Hi,
DirFormat Property tells wodFtpDLX what directory/file structure is used on the server in order for the component to parse the information from ListDir Command, which fills the DirItems Collection. Although wodFtpDLX should be able to set it automatically, sometimes it's necessary to set it manually.
Also, maybe you didn't have to use the PreTranslatedEvent. Maybe you could've used ListParams Property? ListParams Property is used to modify the parameters send when issuing the ListDir Calls.
As for your other question, wodFtpDLX doesn't currently support the mentioned conversion, so you would have to do it manually. However, perhaps we could implement that feature if you could provide us with the documentation, and a place to test it?
Regards,
Damba
Re: MVS Support
What values are available for the dirFormat variable? Not sure I understand where it fits. I am just messing with the IWOD interface VB example, does it affect the ListDir there?
Re: MVS Support
Hi,
Yes it does. It affects all the samples. You can check that by setting it to any incorrect DirFormat on the list. Once connected, issue the ListDir call, and check for DirItems.Count . If it contains a valid number, that means that the DirFormat was set automatically, and that parsing works fine.
Although there are more formats on the list, only the following formats are officially supported: fmtAuto, fmtUNIX, fmtWindows, fmtVShell.
Regards,
Damba