Link to home
Start Free TrialLog in
Avatar of Michael
MichaelFlag for United States of America

asked on

Input/Output parameter in quote rcmd command

Using FTP and QUOTE RCMD, does anyone know of a way to create an input variable? This variable would be used to call and execute an IBM Supplied API on a remote As/400 system.
SOLUTION
Avatar of Barry Harper
Barry Harper
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
IBM supplies the following program for automating FTP:

http://www-01.ibm.com/support/docview.wss?uid=nas8N1010065

You can generate the FTPCMDS file dynamically, and populate it with anything you like, including variable parameter values.
Avatar of Member_2_276102
Member_2_276102

It would be much easier t try to answer if we had a couple examples of what the RCMD could look like. It's clear how a "variable" could make any difference to what you might be trying to do. Can you clarify some?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael

ASKER

I did not need helping building the FTP QUOTE RCMD commands.  I needed help getting feedback from trying to run an API using QUOTE RCMD function.  Actually the API requires an INPUT/OUTPUT variable to be passed to it, which cannot be generated or defined in an FTP session.  So _b_h suggested help me change my search specs, and found the magazine article.  So the pointer from the MIDRANGE magazine about grabbing the FTP server (client session) job log, gave me the ability to use a CL Procedure / Program in the QUOTE RCMD, and get the success or failure details from the job log.