Hello,
I tried our FTCHKCMD exit with your Co:Z SFTP and it appeared not to work. I caused a dump and it seems that when I am sending to a MVS file using put locfile.txt //mvsfile.name the directory type is set to HFS instead of MVS.
We are running 1.6.2 of your product. Is there any way that the directory type could be set to MVS for MVS files? This way our current exit could work ASIS.
-- Thanks.
Directory type HFS for MVS files - CZCHKCMD exit
The IBM FTPCHKCMD exit has a really odd interface, and it can be confusing.
The "directory type" (parm 6 to FT/CZCHKCMD) is the type of the current working directory, and is not related to the type of the file, unless the filename is a "relative" name. This is consistent between IBM FTP and Co:Z SFTP.
So, in the following example the directory and directory type on the PUT will be HFS:
The equivalent in IBM FTP is:
The accurate way to properly determine the actual file type with IBM FTP (or Co:Z SFTP) in the CHKCMD exit is:
The "directory type" (parm 6 to FT/CZCHKCMD) is the type of the current working directory, and is not related to the type of the file, unless the filename is a "relative" name. This is consistent between IBM FTP and Co:Z SFTP.
So, in the following example the directory and directory type on the PUT will be HFS:
Code: Select all
sftp> cd /my/hfs
sftp> put local.file //HLQ.DSN
Code: Select all
ftp> cd /my/hfs
ftp> put local.file 'HLQ.DSN'
Code: Select all
- If the filename starts with "/" -> absolute HFS file
- else If the filename starts with single quote -> absolute DSN
- else if the (current) directory type is MVS:
-> filename is DSN relative to directory
- else if the (current) directory type is HFS:
-> filename is HFS relative to directory