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 

want to ftp a file from my mainframe to my pc

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
arunkumar_e
Beginner


Joined: 06 May 2004
Posts: 27
Topics: 16
Location: Bangalore

PostPosted: Wed May 19, 2004 4:53 am    Post subject: want to ftp a file from my mainframe to my pc Reply with quote

Hi Everyone,
I want to ftp a file on my mainframe to my pc, i am using the following piece of rexx for that purpose, please let me know whether this code is
bug free.

/* REXX
QUEUE "OPEN (computer name or ip address)"
QUEUE "CD D:"
QUEUE "BINARY"
QUEUE "PUT 'file.name' myfile.zip"
QUEUE "CLOSE"
QUEUE "QUIT"
"FTP pc ip address"


moreover i wana transfer the file in the binary form into a zip file, can i do this ?

Thanks
_________________
Arun
"Genius is one percent inspiration and ninety-nine percent perspiration." -- Thomas A. Edison
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Wed May 19, 2004 5:00 am    Post subject: Reply with quote

Arun Kumar,

Please search before posting. A few days back RAVI posted a solution for FTP using rexx. check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=47

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
arunkumar_e
Beginner


Joined: 06 May 2004
Posts: 27
Topics: 16
Location: Bangalore

PostPosted: Wed May 19, 2004 5:15 am    Post subject: Reply with quote

Hi Kolusu ,
Thanks for the link but since i am ftp'ing my file into a zip i wanted to know whether it is possible. moreover i am gettting an error "Connection to server interrupted or timed out", "You must first issue the 'OPEN' command".
_________________
Arun
"Genius is one percent inspiration and ninety-nine percent perspiration." -- Thomas A. Edison
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Wed May 19, 2004 5:35 am    Post subject: Reply with quote

Arunkumar,

It is possible to ftp a mainframe file to PC and save as zip file. Did you specify user id and password? check these sample FTP commands

Code:

IP ADDRESS
USERID
PASSWORD
CD /DIR/SUB DIR
BINARY                                           
PUT 'YOUR MAINFRAME FILE'   PC FILE NAME.ZIP


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed May 19, 2004 7:02 am    Post subject: Reply with quote

Arun has posted this same question twice:

moreover i wana transfer the file in the binary form into a zip file, can i do this?

I think there's something more being asked, but I'm not sure what it is. Seems like Arun wants to transfer any file in binary mode to a PC file with a .zip extension. That's fine, but doing so does not mean that the PKZIP or WinZip utility on the PC will be able to process the file.
Back to top
View user's profile Send private message
arunkumar_e
Beginner


Joined: 06 May 2004
Posts: 27
Topics: 16
Location: Bangalore

PostPosted: Thu May 20, 2004 11:12 pm    Post subject: Reply with quote

Thanks a lot for the information kolusu,ravi.
_________________
Arun
"Genius is one percent inspiration and ninety-nine percent perspiration." -- Thomas A. Edison
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
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