login about faq

Hi All,

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:


sunique on

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

Rajesh's gravatar image



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

Roman's gravatar image

Roman ♦♦

With regards to mainframes it seems that the file is getting transferred to the remote server but the file which is being transferred has something like <user_name>.<file_name>. Question is why the user name is added to the file name when the file is transferred to the remote server?

(Oct 11 '10 at 13:06) Rajesh Rajesh's gravatar image

Query 1:

(Oct 11 '10 at 13:07) Rajesh Rajesh's gravatar image

for eg: sftpg3 -B tp_vaux.txt --password=pwd nz1hxr@ip#269

cat tp_vaux.txt


sput GPOSPUBL_PRIU_20101005_231832.trns



now when i check the remote server the file name ftp'd is:


(Oct 11 '10 at 13:11) Rajesh Rajesh's gravatar image

If transferring to an MVS dataset you can use an absolute path, such as: sput GPOSPUBL_PRIU_20101005_231832.trns //'TUKVM.PRCDR.GMEP.INPUT.PRICES.TEST1'

(Oct 13 '10 at 14:08) Roman ♦♦ Roman's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 08 '10 at 08:07

Seen: 3,987 times

Last updated: Oct 08 '10 at 12:32

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.