IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Transfer multiple mainframe PDS members through FTP


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sumueng

New User


Joined: 27 Nov 2008
Posts: 37
Location: Cochin

PostPosted: Tue Dec 30, 2008 11:06 am
Reply with quote

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
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Tue Dec 30, 2008 11:16 am
Reply with quote

Try using 'MGET' FTP command.

There have been few previous dicussions on this topic.

Previous topic

Hope this helps.
Thanks,
-Kapil
Back to top
View user's profile Send private message
sumueng

New User


Joined: 27 Nov 2008
Posts: 37
Location: Cochin

PostPosted: Tue Dec 30, 2008 12:18 pm
Reply with quote

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
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Dec 30, 2008 12:26 pm
Reply with quote

5.34 LCd subcommand--Change the local working directory.

5.10 CD subcommand--Change the directory on the remote host.
Back to top
View user's profile Send private message
sumueng

New User


Joined: 27 Nov 2008
Posts: 37
Location: Cochin

PostPosted: Tue Dec 30, 2008 1:50 pm
Reply with quote

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
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Dec 30, 2008 2:21 pm
Reply with quote

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
Back to top
View user's profile Send private message
sumueng

New User


Joined: 27 Nov 2008
Posts: 37
Location: Cochin

PostPosted: Tue Dec 30, 2008 2:50 pm
Reply with quote

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
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Dec 30, 2008 2:54 pm
Reply with quote

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.
Back to top
View user's profile Send private message
sumueng

New User


Joined: 27 Nov 2008
Posts: 37
Location: Cochin

PostPosted: Tue Dec 30, 2008 3:13 pm
Reply with quote

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
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 30, 2008 9:50 pm
Reply with quote

Code:
open FTP server
userid
password
Prompt
LCD c:\SUMU
CD 'userid.jcl'
ascii
Mget *
bye
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 30, 2008 10:10 pm
Reply with quote

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.
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Tue Dec 30, 2008 10:47 pm
Reply with quote

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.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Tue Dec 30, 2008 10:58 pm
Reply with quote

do not double post on the same subject ( as per content of thread )

ibmmainframes.com/viewtopic.php?p=170140&highlight=#170140

will be deleted shortly

post edited to add .... done
Back to top
View user's profile Send private message
sumueng

New User


Joined: 27 Nov 2008
Posts: 37
Location: Cochin

PostPosted: Wed Dec 31, 2008 10:16 am
Reply with quote

Hi All,

Thanks for all the valid tips. It's working fine now
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts SORT JCL to merge multiple tow into s... DFSORT/ICETOOL 6
No new posts Using Multiple IFTHEN and WHEN condit... SYNCSORT 12
No new posts Email attachment from mainframe is empty PC Guides & IT News 9
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
Search our Forums:

Back to Top