Hi, How do i transfer file from AS400 server to mainframe server using FTP?

Tags:
AS/400
I have VSAM files and flat files on my AS400. I want to transfer these files to mainframe server
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Manually you could do it this way if both machines are on the same network

open SYSTEM                       
user USERID  USERPWD                
bin                                 
PUT LIB/FILE   LIB/FILE 
close                               
QUIT

Our auto process looks like this for sending a library to a remote system 
There a 2 members in out QCLSRC lib, 1 for the log and the other for commands
We can then run the program from a menu or JOBSCDE
PGM        PARM(&LIBRARY)                                 
DCL        VAR(&LIBRARY) TYPE(*CHAR) LEN(10)              
CRTSAVF    FILE(QGPL/&LIBRARY)                            
                                                          
SAVLIB     LIB(&LIBRARY) DEV(*SAVF) SAVF(QGPL/&LIBRARY) + 
             TGTRLS(V7R1M0)                               
                                                          
OVRDBF     FILE(INPUT) TOFILE(MESSRC033/QCLSRC) +         
             MBR(FTPAWV2) /*FTP COMMANDS                                
OVRDBF     FILE(OUTPUT) TOFILE(MESSRC033/QCLSRC) MBR(FTP) /*log file
                                                          
FTP        RMTSYS('10.10.10.1')                            
DLTF       FILE(QGPL/&LIBRARY)                            
                                                          
ENDPGM 

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    It's not clear what you are asking. Are you asking for training in how to use FTP? Or have you run into problems trying to use FTP? If problems, what are they?
    33,080 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: