View previous topic :: View next topic
|
Author |
Message |
sumueng
New User
Joined: 27 Nov 2008 Posts: 37 Location: Cochin
|
|
|
|
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 |
|
|
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
Try using 'MGET' FTP command.
There have been few previous dicussions on this topic.
Previous topic
Hope this helps.
Thanks,
-Kapil |
|
Back to top |
|
|
sumueng
New User
Joined: 27 Nov 2008 Posts: 37 Location: Cochin
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
sumueng
New User
Joined: 27 Nov 2008 Posts: 37 Location: Cochin
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
sumueng
New User
Joined: 27 Nov 2008 Posts: 37 Location: Cochin
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
sumueng
New User
Joined: 27 Nov 2008 Posts: 37 Location: Cochin
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Code: |
open FTP server
userid
password
Prompt
LCD c:\SUMU
CD 'userid.jcl'
ascii
Mget *
bye
|
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
Back to top |
|
|
sumueng
New User
Joined: 27 Nov 2008 Posts: 37 Location: Cochin
|
|
|
|
Hi All,
Thanks for all the valid tips. It's working fine now |
|
Back to top |
|
|
|