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
 

 

Downloading file from Mainframe to Local computer

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Sat Dec 30, 2006 3:27 am    Post subject: Downloading file from Mainframe to Local computer
Reply with quote

Dear All,

I need to download a file from mainframe to local system. I use to do it with the download option available in the menu.
Since it is repeated task I would like to setup a job on CA7 to automate this task. Will an FTP job help me. Please let me know if there are other possibilities.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Dec 30, 2006 4:37 am    Post subject:
Reply with quote

Hello,

Yes, you can automate transferring the file form the mainframe to a local computer.

You can "push" the file from the mainframe (via CA-7) by running a batch ftp from the mainframe to the local computer - as long as the local computer will function as an "ftp server".

You could also "pull" the file from the mainframe to the local computer by running a scheduled ftp from the local computer. This may be easier to implement because while almost all local computers have ftp client software, many do not have an ftp daemon. This should be scheduled whtn the mainframe file will not be in use by any other processes.

You could also check with your networking group to see if they have already implemented a "standard" way to do this. Many sites have scheduled jobs that download mainframe data to network drives.
Back to top
View user's profile Send private message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Sat Dec 30, 2006 7:52 am    Post subject: Re: Downloading file from Mainframe to Local computer
Reply with quote

Thanks for the two ways.
Could you tell what makes a local computer to behave as FTP server and how can I make my computer as FTP server?.

I never did the second method of pulling files into local computer. What kind of process required for this?

Thanks for your help
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Dec 30, 2006 9:56 am    Post subject:
Reply with quote

Hello Selva,

You're welcome.

To have your local computer behave like an ftp server i'd suggest talking with your network support people or the people who configure and install your local computers. They can let you know if this method will work for you. For your local computer to become an ftp server it will need software not usually installed on all of the local computers. Most organizations do not have the local computers set up as ftp servers. There are many ways to do this and your requirement would be best served by your local support people who know those environment specifics.

If you want to "pull" a file from the mainframe to the local computer, look in the tcp/ip software you use to connect to the mainframe (these days most mainframe connections are via tcp/ip) and find "ftp". When you click on that, a window should be brought that asks you to choose a remote system. You will need to get with the network people and find out what the ip address or domain name for the mainframe is. (If they say that the mainframe does not support ftp you won't be able to use ftp to accomplish the file transfer.) Once you have the ip address or domain name, use that to connect. Part of the connect will ask for your userid and password. Your mainframe logon should work. Once you are connected, you should be able to transfer files.

I'll try to check replies over the weekend but may be out of touch. I will look again when i return on Tuesday.

Good Luck and have good New Year!
Back to top
View user's profile Send private message
nabarun

New User


Joined: 27 Apr 2005
Posts: 13
Location: india

PostPosted: Tue Jan 02, 2007 12:13 pm    Post subject: Re: Downloading file from Mainframe to Local computer
Reply with quote

hi,
use the following commands

ftp> open <give ip address>
User (........................:(none)): <give user name>
Password:<give password>
ftp> get 'abc.cde,xyz(prg)' c:/pg3.doc ------> for getting the files from mainframe
ftp> put c:/pg3.doc 'abc.cde,xyz(prg)'-----> for putting the files in mainframe
ftp> bye


hope this will be helpful

regards

nabarun
Back to top
View user's profile Send private message
madhumr
Warnings : 1

New User


Joined: 18 Oct 2006
Posts: 7
Location: bangalore

PostPosted: Tue Jan 02, 2007 1:57 pm    Post subject: Re: Downloading file from Mainframe to Local computer
Reply with quote

hi
actually i didnt get where we need to give this commond
nabarun wrote:
hi,
use the following commands

ftp> open <give ip address>
User (........................:(none)): <give user name>
Password:<give password>
ftp> get 'abc.cde,xyz(prg)' c:/pg3.doc ------> for getting the files from mainframe
ftp> put c:/pg3.doc 'abc.cde,xyz(prg)'-----> for putting the files in mainframe
ftp> bye


hope this will be helpful

regards

nabarun
Back to top
View user's profile Send private message
nabarun

New User


Joined: 27 Apr 2005
Posts: 13
Location: india

PostPosted: Tue Jan 02, 2007 2:07 pm    Post subject: Re: Downloading file from Mainframe to Local computer
Reply with quote

hi,

in the command prompt type FTP and do the rest.make sure that your machine is connected with mainframe. if you have any doubt plz reply.

regards

nabarun
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jan 02, 2007 8:16 pm    Post subject:
Reply with quote

Hello,

To get to where you can enter the dialog Nabarun refers to, go to "Start", click on "Run", type the word "command" in the program name window. This will bring up a "dos" prompt. At the DOS command line enter "FTP" and follow
Quote:
ftp> open <give ip address>
User (........................:(none)): <give user name>
Password:<give password>
ftp> get 'abc.cde,xyz(prg)' c:/pg3.doc ------> for getting the files from mainframe
ftp> put c:/pg3.doc 'abc.cde,xyz(prg)'-----> for putting the files in mainframe
ftp> bye
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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