MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP a file from PC to Mainframe and viceversa
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Thu Oct 26, 2006 3:30 pm    Post subject: FTP a file from PC to Mainframe and viceversa Reply with quote

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
View user's profile Send private message Send e-mail
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Oct 26, 2006 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
rama krishna reddy
Beginner


Joined: 18 Sep 2006
Posts: 31
Topics: 13
Location: Hyderabad

PostPosted: Fri Oct 27, 2006 1:01 am    Post subject: Tranfer file from PC to mainframe Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Oct 27, 2006 7:58 am    Post subject: Re: Tranfer file from PC to mainframe Reply with quote

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
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Fri Oct 27, 2006 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mrinalsolanki
Beginner


Joined: 02 May 2006
Posts: 56
Topics: 16

PostPosted: Fri Dec 08, 2006 5:47 am    Post subject: Reply with quote

vkphani,

Try these steps:
1. FTP <ENTER>
2.open 10.218.102.145


hope this works.
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Fri Dec 29, 2006 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Mon Feb 19, 2007 4:19 pm    Post subject: Reply with quote

There should be a settings link in your emulator check it.
or you should get it in session details.
Back to top
View user's profile Send private message
Redrose
Beginner


Joined: 29 Sep 2006
Posts: 13
Topics: 6

PostPosted: Wed Oct 31, 2007 4:14 am    Post subject: Reply with quote

Hi All Smile ,

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
View user's profile Send private message
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Wed Oct 31, 2007 6:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Redrose
Beginner


Joined: 29 Sep 2006
Posts: 13
Topics: 6

PostPosted: Wed Oct 31, 2007 7:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Wed Oct 31, 2007 8:11 am    Post subject: Reply with quote

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. Rolling Eyes
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Oct 31, 2007 8:54 am    Post subject: Reply with quote

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
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed Oct 31, 2007 9:10 am    Post subject: Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Oct 31, 2007 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group