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 Gilly40023,625 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.