View previous topic :: View next topic
|
Author |
Message |
Selvamani
New User
Joined: 19 Dec 2006 Posts: 21 Location: California
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Selvamani
New User
Joined: 19 Dec 2006 Posts: 21 Location: California
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
nabarun
New User
Joined: 27 Apr 2005 Posts: 13 Location: india
|
|
|
|
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 |
|
|
madhumr Warnings : 1 New User
Joined: 18 Oct 2006 Posts: 7 Location: bangalore
|
|
|
|
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 |
|
|
nabarun
New User
Joined: 27 Apr 2005 Posts: 13 Location: india
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|