Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes

Author Message
sumueng

New User

Joined: 27 Nov 2008
Posts: 37
Location: Cochin

 Posted: Tue Dec 30, 2008 11:06 am    Post subject: Transfer multiple mainframe PDS members through FTP Hi All, I have around 10 member in mainframe PDS. I know we can transfer a single member to a local machine using FTP GET command. Is there a way where we can transfer all the 10 members in a single shot to a local machine using FTP GET command. Thanks Sumeendar

hikaps14

Active User

Joined: 02 Sep 2005
Posts: 189
Location: Noida

 Posted: Tue Dec 30, 2008 11:16 am    Post subject: Reply to: Transfer multiple mainframe PDS members through FT Try using 'MGET' FTP command. There have been few previous dicussions on this topic. Previous topic Hope this helps. Thanks, -Kapil
sumueng

New User

Joined: 27 Nov 2008
Posts: 37
Location: Cochin

 Posted: Tue Dec 30, 2008 12:18 pm    Post subject: Reply to: Transfer multiple mainframe PDS members through FT Hi, Regarding the discussing from the previous topic what is LCD stands for. Also how we represent the path of the file in the local machine Thanks Sumeendar
superk

Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

 Posted: Tue Dec 30, 2008 12:26 pm    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
sumueng

New User

Joined: 27 Nov 2008
Posts: 37
Location: Cochin

 Posted: Tue Dec 30, 2008 1:50 pm    Post subject: Reply to: Transfer multiple mainframe PDS members through FT hi, Thanks for link, but it doesn't serve my purpose I basically want to know, how we can specify the local directory path to store the members that are FTP from the mainframe file. like for eg: i need to store these members in my local machine in the following directory 'temp' in 'C' drive, 'C:\Temp'. How we will set the above path. Thanks Sumeendar
expat

Global Moderator

Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

 Posted: Tue Dec 30, 2008 2:21 pm    Post subject: Can't see why the information doesn't serve your purpose. If you run ftp from the mainframe then you need to use CD else use LCD
sumueng

New User

Joined: 27 Nov 2008
Posts: 37
Location: Cochin

 Posted: Tue Dec 30, 2008 2:50 pm    Post subject: Reply to: Transfer multiple mainframe PDS members through FT Hi All, Below is my FTP process that i plan to run from DOS through a BAT file open server name userid password Prompt CD C:\SUMU Mget 'userid.jcl(*)' bye Now i need to store members residing in PDS 'userid.jcl(*) to my local machine directory 'sumu' in 'C drive'. I gave as above (highlighted). But it is not working as expected. Thanks Sumeendar
expat

Global Moderator

Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

 Posted: Tue Dec 30, 2008 2:54 pm    Post subject: Would you care to elaborate just a little on that "But it is not working as expected." Tells us absolutely nothing. How can we be expected to help you if you do not give any usefull information ? So, what do you expect to happen and what is actually happening.
sumueng

New User

Joined: 27 Nov 2008
Posts: 37
Location: Cochin

 Posted: Tue Dec 30, 2008 3:13 pm    Post subject: Reply to: Transfer multiple mainframe PDS members through FT hi, Ths issue for me is that the the members in PDS 'userid.jcl(*)' that are downloaded to my local machine c:\sumu has not come in TEXT format. Below is the FTP command i am executing from DOS. Here, where should i explicitly mention TEXT format. open FTP server userid password Prompt LCD c:\SUMU Mget 'userid.jcl(*)' bye
Robert Sample

Global Moderator

Joined: 06 Jun 2008
Posts: 8134
Location: East Dubuque, Illinois, USA

Posted: Tue Dec 30, 2008 9:50 pm    Post subject:

 Code: open FTP server userid password Prompt LCD c:\SUMU CD 'userid.jcl' ascii Mget * bye
Robert Sample

Global Moderator

Joined: 06 Jun 2008
Posts: 8134
Location: East Dubuque, Illinois, USA

 Posted: Tue Dec 30, 2008 10:10 pm    Post subject: Addendum: be aware that the member names are transferred without any file extension. There may be a way to get a desired file extension on the files but I'm not aware of it, and the method would definitely NOT be standard FTP.
hikaps14

Active User

Joined: 02 Sep 2005
Posts: 189
Location: Noida

 Posted: Tue Dec 30, 2008 10:47 pm    Post subject: Reply to: Transfer multiple mainframe PDS members through FT Yes, there is dos command to RENAME. Once you say 'BYE' to FTP server. Then you type a dos command : REN *.* *.txt all your members will have .TXT extension now. It should work. Thanks, -Kapil.
enrico-sorichetti

Global Moderator

Joined: 14 Mar 2007
Posts: 10294
Location: italy

 Posted: Tue Dec 30, 2008 10:58 pm    Post subject: Reply to: Transfer multiple mainframe PDS members through FT do not double post on the same subject ( as per content of thread ) http://ibmmainframes.com/viewtopic.php?p=170140&highlight=#170140 will be deleted shortly post edited to add .... done
sumueng

New User

Joined: 27 Nov 2008
Posts: 37
Location: Cochin

 Posted: Wed Dec 31, 2008 10:16 am    Post subject: Reply to: Transfer multiple mainframe PDS members through FT Hi All, Thanks for all the valid tips. It's working fine now
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 5 Wed Aug 23, 2017 9:59 pm Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm Allianz Technology - Mainframe 3+ Yea... sooraj184 Mainframe Jobs 0 Mon Jul 31, 2017 2:17 pm Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us