Page 1 of 1

FTP MGET Mainframe to PC

PostPosted: Wed Jan 06, 2010 8:47 pm
by tander
Hi There,

(please accept my apology in advance for posting an FTP question)

I am trying to FTP multiple files from a mainframe onto my pc with "mget", instead of using "get" for each individual file.

mget never prompts for the local file destination, and from what I can tell after searching, the files aren't reaching my pc.

To perform a regular get, after using ftp to logon to the machine I would type:

"ftp> get @TRANFILE.B01.R1 C:\TSODOWNLOAD\TRANFILE.B01.R1.txt"

To attempt the multiple transfer I am trying the following:

"ftp> mget
Remote files @TRANFILE.B*
mget @TRANFILE.B01.R1? y
mget @TRANFILE.B01.R2? y
mget @TRANFILE.B01.R3? y"

Is there a way to set the destination for the files using mget?

Thanks,

-Tom

Re: FTP MGET Mainframe to PC

PostPosted: Wed Jan 06, 2010 9:43 pm
by MrSpock
No.

You need to be issuing the MGET command from the directory where you want the files to be stored.

Re: FTP MGET Mainframe to PC

PostPosted: Wed Jan 06, 2010 11:43 pm
by tander
OK,

I changed my local directory using "lcd" command in ftp to specify the destination. Now the "mget" works!!!

Thanks for pointing me in the right direction. :)