FTP files to target Mainframe system

Hi Experts...
Greetings for the day..!

I just want to FTP the files to mainframe system..

my code is not working..and also i need to put the files in a particular directory in a specific naming format...

ftp -i -n ${HOST_NAME} << END_FTP
user ${USER_NAME} ${PASSWORD}
put ${FILE_NAME}
bye
END_FTP

Please help me...

Thanks & Regards,
Kandy

Hi Experts..

    just now i look u r issue , 

  1. u instal putty 
  2. C:\\&gt;psftp  ip addres 
  3.psftp&gt; cd/tmp 
  4.psftp&gt;!dir
  5.psftp&gt; mput file name 
  6. bye

kumarcbs: I'm not sure that putty on a windows box will help the OP here...

spkandy
What you have looks about right, can you show us the error you are getting?

To put the file into a particular directory on the destination, you would add a 'cd <dirname' to your script but mainframes don't work that way as far as I know (they use datasets instead of the convential files and directories). Are you sure it's a mainframe (not just a big unix server) that you are sending to?

To specify a different filename on the detsination, you add it to the put command:
put <source filename> <destination filename>

Take a look here: Using ftp in a shell script