Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Transfer multiple mainframe PDS members through FTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Transfer multiple mainframe PDS members through FTP
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    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
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    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
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

Moderator Team Head


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

PostPosted: Tue Dec 30, 2008 12:26 pm    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
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    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 30, 2008 2:21 pm    Post subject:
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    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 30, 2008 2:54 pm    Post subject:
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    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
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: 7914
Location: Bellevue, IA

PostPosted: Tue Dec 30, 2008 9:50 pm    Post subject:
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: 7914
Location: Bellevue, IA

PostPosted: Tue Dec 30, 2008 10:10 pm    Post subject:
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    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue Dec 30, 2008 10:58 pm    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
Reply with quote

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
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    Post subject: Reply to: Transfer multiple mainframe PDS members through FT
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
No new posts Interface from Mainframe to Confluenc... hblun CLIST & REXX 4 Tue Sep 20, 2016 5:47 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Admin Openings with CTS enikhilk Mainframe Jobs 0 Tue Sep 13, 2016 10:13 am
No new posts Cards mainframe developer requirement... capricorn Mainframe Jobs 0 Sun Sep 11, 2016 9:57 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us