Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 8720
Location: Welsh Wales

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: 8720
Location: Welsh Wales

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: 8400
Location: Dubuque, Iowa, USA

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: 8400
Location: Dubuque, Iowa, USA

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

Senior Member


Joined: 14 Mar 2007
Posts: 10521
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
No new posts Ideas to motivate mainframe team mc77in All Other Mainframe Topics 6 Wed Oct 10, 2018 4:59 pm
No new posts Mainframe Developer opening in Allian... Rathish123 Mainframe Jobs 0 Fri Sep 28, 2018 10:42 am
No new posts Need help on the multiple files refor... wik123 DFSORT/ICETOOL 7 Wed Sep 19, 2018 10:47 am
No new posts Open source project on mainframe agkshirsagar General Talk & Fun Stuff 3 Tue Sep 18, 2018 1:17 am
No new posts Delete Multiple rows in chunks by usi... dharmaraok DB2 5 Tue Sep 11, 2018 8:44 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us