View previous topic :: View next topic |
Author |
Message |
arunkumar_e Beginner

Joined: 06 May 2004 Posts: 27 Topics: 16 Location: Bangalore
|
Posted: Wed May 19, 2004 4:53 am Post subject: want to ftp a file from my mainframe to my pc |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12383 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
arunkumar_e Beginner

Joined: 06 May 2004 Posts: 27 Topics: 16 Location: Bangalore
|
Posted: Wed May 19, 2004 5:15 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12383 Topics: 75 Location: San Jose
|
Posted: Wed May 19, 2004 5:35 am Post subject: |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed May 19, 2004 7:02 am Post subject: |
|
|
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 |
|
 |
arunkumar_e Beginner

Joined: 06 May 2004 Posts: 27 Topics: 16 Location: Bangalore
|
Posted: Thu May 20, 2004 11:12 pm Post subject: |
|
|
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 |
|
 |
|
|