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:

ascii

sunique on

sput local_file_name remote_file_name

bye

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?

Thanks.

asked Oct 08 '10 at 08:07

Rajesh's gravatar image

Rajesh
1221


Hi,

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?

link

answered Oct 08 '10 at 12:32

Roman's gravatar image

Roman ♦♦
7735817

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

ascii

sput GPOSPUBL_PRIU_20101005_231832.trns

TUKVM.PRCDR.GMEP.INPUT.PRICES.TEST1

bye

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

NZ1HXR.TUKVM.PRCDR.GMEP.INPUT.PRICES.TEST1 However it should have been TUKVM.PRCDR.GMEP.INPUT.PRICES.TEST1

(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

By RSS:

Answers

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

Tags:

×81

Asked: Oct 08 '10 at 08:07

Seen: 3,393 times

Last updated: Oct 08 '10 at 12:32

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