FTP MGET Mainframe to PC

TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

FTP MGET Mainframe to PC

Postby tander » Wed Jan 06, 2010 8:47 pm

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:


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?



Re: FTP MGET Mainframe to PC

Postby MrSpock » Wed Jan 06, 2010 9:43 pm


You need to be issuing the MGET command from the directory where you want the files to be stored.
User avatar
Global moderator
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: FTP MGET Mainframe to PC

Postby tander » Wed Jan 06, 2010 11:43 pm


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. :)

Return to TSO & ISPF


  • Related topics
    Last post