FTP GET to run IBM host job
I need help on an unusual task to perform using WinSCP .NET library (version 5.7.7).
This is how it looks like from Windows commandline FTP client:
... ftp> QUOTE SITE FILETYPE=JES 200 SITE command was accepted ftp> GET 'X1.LTZ.FT.JCL($FX983C0)' 200 Port request OK. 125-Submitting job 'X1.LTZ.FT.JCL($FX983C0)' FIXrecfm 80 125 Unable to send X1.LTZ.FT.JCL($FX983C0) 550 Transfer aborted ftp>
I'm trying to move those commands on my new .NET exe based on WinSCP library.
It works fine until it has to execute:
TransferResult = mySessionBMP.GetFiles("'X1.LIZ.FT.JCL($FX983C0)'", ".\FTPUCBesito" & Now().ToString("yyyyMMddHHmmss") & ".txt", False, myTransferOption)
<group name="get -nopermissions -nopreservetime -transfer="ascii" -- "/'X1.LIZ.FT.JCL($FX983C0)'" ".\FTPUCBesito20160601114526.txt"" start="2016-06-01T09:45:26.418Z"> <failure> <message>Can't get attributes of file ''X1.LIZ.FT.JCL($FX983C0)''.</message> <message>File or folder ''X1.LIZ.FT.JCL($FX983C0)'' does not exist.</message> </failure> </group>
Ok, I'm aware the file doesn't exists, it's a sort of virtual file. Just I'm looking for a way to tell WinSCP to try to get it without any check on remote file.
Is it possible? Any other idea to get that job done?
Thanks