This tip was actually created from the source in the IBM Redbook AS/400 TCP/IP Cool Stuff. So I don't know if this is really "my tip". It is a really great FTP command consisting of 1 cmd/1 cl/2 RPG source files. It prompts for all pertinent information including 3 FTP commands, creates a copy of the script file, and the log file in qtemp. This information can then be copied anywhere, it also checks for errors. I am only sending the command source, if you would like the rest of the source please e-mail me and I will FTP to you. It is great!


 
  CMDSRC = 
FTPFILE: CMD PROMPT('START A FTP FILE TRANSFER')                   
           PARM       KWD(RMTSYS) TYPE(*CHAR) LEN(50) MIN(1) +     
                        PROMPT('REMOTE SYSTEM FOR FTP TRANSFER')   
           PARM       KWD(LCLFIL) TYPE(*CHAR) LEN(50) MIN(1) +     
                        PROMPT('LOCAL FILE''S NAME')               
           PARM       KWD(RMTFIL) TYPE(*CHAR) LEN(50) MIN(1) +     
                        PROMPT('REMOTE FILE''S NAME')              
           PARM       KWD(FUNCTION) TYPE(*CHAR) LEN(1) RSTD(*YES) +
                        VALUES(P G) SPCVAL((P P) (G G)) MIN(1) +   
                        PROMPT('FUNCTION (PUT/GET)')               
           PARM       KWD(USR) TYPE(*CHAR) LEN(10) MIN(1) +        
                        PROMPT('USER PROFILE IN REMOTE SYSTEM')    
           PARM       KWD(PWD) TYPE(*CHAR) LEN(30) MIN(1) +        
                                                   PARM       KWD(PWD) TYPE(*CHAR) LEN(30) MIN(1) + 
                        PROMPT('PASSWORD TO REMOTE SYSTEM') 
           PARM       KWD(OPT1) TYPE(*CHAR) LEN(20) +       
                        PROMPT('COMMAND 1')                 
           PARM       KWD(OPT2) TYPE(*CHAR) LEN(20) +       
                        PROMPT('COMMAND 2')                 
           PARM       KWD(OPT3) TYPE(*CHAR) LEN(20) +       
                        PROMPT('COMMAND 3')  

This was first published in July 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

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

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.