IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Downloading file from Mainframe to Local computer


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat Dec 30, 2006 4:37 am
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
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

Moderator Emeritus


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

PostPosted: Sat Dec 30, 2006 9:56 am
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
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
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
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

Moderator Emeritus


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

PostPosted: Tue Jan 02, 2007 8:16 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top