View previous topic :: View next topic |
Author |
Message |
vkphani Intermediate
Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Thu Oct 26, 2006 3:30 pm Post subject: FTP a file from PC to Mainframe and viceversa |
|
|
Hi,
Is there any utility thru which a file can be transfered to Mainframe from PC and viceversa.
Thru SEND and RECEIVE options in Mainframe, this can be acheived. But I wanna know if there is any utility to do this. I searched for this but not able to find any. |
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Oct 26, 2006 4:07 pm Post subject: |
|
|
Your question is your answer! FTP is a utility for transferring files to/from a PC. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
|
rama krishna reddy Beginner
Joined: 18 Sep 2006 Posts: 31 Topics: 13 Location: Hyderabad
|
Posted: Fri Oct 27, 2006 1:01 am Post subject: Tranfer file from PC to mainframe |
|
|
How to transfer a dataset from mainframe to PC thru FTP ?
1) Find the IP address of the mainframe system you are transmitting from.
Go ot ISPF option 6(command)
- type PING DIPN then hit ENTER
- Look for a message like the one below to find the IP address
148.171.100.2
2) Go to a DOS Prompt (COMMAND PROMPT in WINDOWS 2000) on your PC
- Type FTP then hit ENTER
- Type OPEN 148.171.100.2(i.e ip_address)
- Hit ENTER
- Enter your TSO ID and PASSWORD
- Enter the RECV command to receive the mainframe file down to your PC
RECV 'WXX262.SE.SED103.SE585.NEW' c:\temp\yourfile.txt
- Type CLOSE and hit ENTER
- Type BYE then hit ENTER to exit |
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Fri Oct 27, 2006 7:58 am Post subject: Re: Tranfer file from PC to mainframe |
|
|
rama krishna reddy wrote: | 1) Find the IP address of the mainframe system you are transmitting from.
Go ot ISPF option 6(command)
- type PING DIPN then hit ENTER | In the example, DIPN should be replaced with your mainframe HOSTNAME. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
|
vkphani Intermediate
Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Fri Oct 27, 2006 10:56 am Post subject: |
|
|
Hi All,
Thanks for your help.
I hit the ENTER after the command "ftp 10.218.102.145" in cmd prompt. But it is failing with the message: Unknown error number. |
|
Back to top |
|
|
mrinalsolanki Beginner
Joined: 02 May 2006 Posts: 56 Topics: 16
|
Posted: Fri Dec 08, 2006 5:47 am Post subject: |
|
|
vkphani,
Try these steps:
1. FTP <ENTER>
2.open 10.218.102.145
hope this works. |
|
Back to top |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Fri Dec 29, 2006 3:08 am Post subject: |
|
|
How to find mainframe hostname?
I can see three ip addresses related to my mainframe -
1) My mainframe emulator, EPC, shows 'Connected to host ip1'.
2) When I logon to mainframe it shows 'System ID : ABCD'.
If I do ping ABCD then i get -
CS V1R4: Pinging host ABCD (ip2)
EZZ3115I Unable to open RAW socket: EDC5139I Operation not permitted.
3) In ftp 'open ip2' gets timed out. Now there is a third ip, ip3, which I don't know how people got. This is the ip that we actually use to do ftp.
So what are these three ip addresses. And how do I find the hostname?
Thanks,
Diba. |
|
Back to top |
|
|
vak255 Intermediate
Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Mon Feb 19, 2007 4:19 pm Post subject: |
|
|
There should be a settings link in your emulator check it.
or you should get it in session details. |
|
Back to top |
|
|
Redrose Beginner
Joined: 29 Sep 2006 Posts: 13 Topics: 6
|
Posted: Wed Oct 31, 2007 4:14 am Post subject: |
|
|
Hi All ,
Can we FTP without using MS-DOS?
i.e., Can we receive a dataset from Maniframes to Local PC drive, like 'C:\My files'. Can this be done by running a Job or by REXX code...??
Thanks in advance,
Regards,
Ramanan R |
|
Back to top |
|
|
Sreejith Intermediate
Joined: 02 Dec 2002 Posts: 155 Topics: 25 Location: N.Ireland
|
Posted: Wed Oct 31, 2007 6:11 am Post subject: |
|
|
You need to install something like Cesar FTP on your PC and then can use PC's IP address in a JCL to do an FTP. Google Cesar FTP and you can down load it for free. |
|
Back to top |
|
|
Redrose Beginner
Joined: 29 Sep 2006 Posts: 13 Topics: 6
|
Posted: Wed Oct 31, 2007 7:10 am Post subject: |
|
|
Sreejith,
Thanks for the info, but could you please explain why do we need to install Cesar FTP?
Please clarify.
Thanks,
Ramanan R |
|
Back to top |
|
|
Sreejith Intermediate
Joined: 02 Dec 2002 Posts: 155 Topics: 25 Location: N.Ireland
|
Posted: Wed Oct 31, 2007 8:11 am Post subject: |
|
|
Redrose wrote: | Sreejith,
Thanks for the info, but could you please explain why do we need to install Cesar FTP?
Please clarify.
Thanks,
Ramanan R |
So that your PC can accept FTP requests. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Oct 31, 2007 8:54 am Post subject: |
|
|
Ramanan, rather than being vague and beating around the bush, why don't you tell us what you're doing, and what software you have to enable the process? You say you want to copy data to, using your terminology "Local PC drive". What is this device? Is it a Windows or Unix server running an actual FTP daemon/service? Is it a desktop workstation? If so, does this workstation also have a running FTP daemon/service? If not, what software IS enabled on it to allow secured and unattended transfer of data? If this is your typical Windows desktop machine with a non-fixed TCP/IP address, then I doubt it has a running FTP service, in which case the suggestion to purchase and install a third-party FTP server was a good idea. |
|
Back to top |
|
|
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed Oct 31, 2007 9:10 am Post subject: |
|
|
If you are using a windows desktop machine.
1. You need to know the FTP IP address for the machine you want to communicate with, this may not be the same as the IP address for your terminal sessions.
2. You need to know if you have authorization to do FTP.
3. If you have authorization & the IP address then
open a DOS (or command) WINDOW on your workstation
type FTP
OPEN ip address
your user id
your password
GET 'mf file name' "your pc filename"
or
PUT "pc filename" 'MF file name'
QUIT
GET retrieves a file from the mainframe and stores it on your PC, PUT is just the opposite. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Oct 31, 2007 10:01 am Post subject: |
|
|
Another option worth considering is the ISPF File Transfer (Option 3.7??). If you install and configure the Workstation Agent onto your desktop, then yes, you can transfer data using JCL and/or REXX since you'll be using common ISPF service calls. |
|
Back to top |
|
|
|
|