I am modifying my existing unix script to use sftpg3 instead of ftp for file transfer. Currently the script, when trasnferring the data using ftp, is using a link which attempts to convert FTP commands to Tectia sftp protocol.
The current code is something like: sftpg3 -B cmd.txt --password=passwd user@ip#port
The contents of cmd.txt are:
sput local_file_name remote_file_name
I have a couple of questions: Q1) The sunique command in not working in the above scenario. Where shld the command be placed?
Q2) Sput option works fine when I do a file transfer from unix -> unix. But there is an issue when run the same script for unix -> mainframes. What would be the alternate command?
asked Oct 08 '10 at 08:07
What version of Tectia Client are you using? and what are the actual error messages that you get?
I belive sunique support to sftpg3 was added starting with version 6.1.0. And to answer your questions:
A1) That is the correct use of the command. Just check that you are indeed running version 6.1.0 or higher and if not please write what error you are getting.
A2) sput should work against mainframes as well. Just make sure that the destination file name is a valid dataset name. Can you post the error you're seeing here as well?
answered Oct 08 '10 at 12:32