SFTP Datastage 9.1 server job failing

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
hari.hanu
Participant
Posts: 3
Joined: Fri Apr 16, 2010 8:55 am

SFTP Datastage 9.1 server job failing

Post by hari.hanu »

Hi,

I am doing SFTP to transfer the files from my datastage server to the remote server. Inital SFTP set up is done and the user name 'A'(lets say) has been configured and tested it from command prompt.
From command prompt I am able to transfer the files to remote successfully with no issues. But when I am trying to execute the SFTP script from datastage 9.1 server job logging with user 'A' , thorwing me an error

" Command Failed to execute -Connecting to <remote server name> Could not create directory '/C=/Windows/system32/config/systemprofile/.ssh'.
Then couldn't initialise connection to server

Could any one please help me on this.

Thanks
Hanumanth
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
Did you run the sftp from command line on the DS server machine?
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
hari.hanu
Participant
Posts: 3
Joined: Fri Apr 16, 2010 8:55 am

Post by hari.hanu »

Yes Ron. I did and transferred some files to the remote location.

Script: SFTP user@remote host server name
cd temp ----- location of the remote host server name
lcd E:/apps ---- my TEST1.txt, TEST2.txt files are here
mput TE*
bye

Thanks
Hanumanth
hari.hanu
Participant
Posts: 3
Joined: Fri Apr 16, 2010 8:55 am

Post by hari.hanu »

Got the result.

Added variable in the script
Set userprofile = C:\users\A
at the top of the script. It worked

Thanks
Hanumanth
Post Reply