5 pts.
 Parameters in RUNRMTCMD?
Can I pass parametes in a runrmtcomd?

Software/Hardware used:
ASKED: July 28, 2008  9:08 PM
UPDATED: July 29, 2008  10:30 AM

Answer Wiki:
Hi, You can pass parameters using the RUNRMTCMD command, easiest way is to use a command string from a CL program and build the command with the parameters you need to pass (For example to print a library's contents) :- PARM &LIBNAM DCL &LIBNAM *CHAR 10 DCL &COMAND *CHAR 132 CHGVAR VAR(&COMAND) VALUE('DSPLIB LIB(' || &LIBNAM || ') OUTPUT(*PRINT)') RUNRMTCMD CMD(&COMAND) RMTLOCNAME(hostname) ENDPGM Regards, Martin Gilbert.
Last Wiki Answer Submitted:  July 29, 2008  10:30 am  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _