I'm not sure which forum this belongs in, but here goes anyway :
I am trying to pass a parm to a program via a Rexx exec using LINKPGM :
EPAPARM = "/ADFPTVWUMAH5"
ADDRESS LINKPGM 'EPA ' EPAPARM
I am getting a return code -2 on the ADDRESS LINKPGM command. So, I created another dummy program to see if the rc -2 was program specific. It's not. I get a rc -2 when passing the same parm to the dummy program. When I remove the '/' from the parm, it gets a rc 0.
I've searched all over and I can't find what the problem is. Can anyone help ? By the way, the parm with the '/' works fine when used in a batch MVS job.
I am trying to pass a parm to a program via a Rexx exec using LINKPGM :
EPAPARM = "/ADFPTVWUMAH5"
ADDRESS LINKPGM 'EPA ' EPAPARM
I am getting a return code -2 on the ADDRESS LINKPGM command. So, I created another dummy program to see if the rc -2 was program specific. It's not. I get a rc -2 when passing the same parm to the dummy program. When I remove the '/' from the parm, it gets a rc 0.
I've searched all over and I can't find what the problem is. Can anyone help ? By the way, the parm with the '/' works fine when used in a batch MVS job.