The official guide says to use the CMD(your_statement) function, but I keep getting an unrecognized keyword error. I am attempting to customize the ISPF primary option menu and I need to edit the panel so that when you press 'R' it runs a Rexx exec. Here is some of the code within the panel I am using:
%
% ******************
% * *
% * $2 %Edit *
% * $3 %Utility *
% * $6 %Command *
% * $SD %SDSF *
% * $D %Datasets *
% * $X %eXit *
% * $R %REXX *
% * *
% ******************
)PROC
&ZSEL = TRANS ( TRUNC (&ZCMD,'.')
2,'PGM(ISREDIT) PARM(P,ISREDM01) SCRNAME(EDIT)'
3,'PANEL(ISRUTIL) SCRNAME(UTIL)'
D,'PGM(ISRUDL) PARM(ISRUDLP) SCRNAME(DSLIST)'
6,'PGM(ISRPTC) SCRNAME(CMD)'
SD,'PGM(ISFISP) NOCHECK NEWAPPL(ISF) SCRNAME(SDSF)'
R,'CMD(TSO EXEC 'IBM####.REXX(REXXSYSC)')'
' ',' '
X,'EXIT'
*,'?' )
&NEXTOPT = .TRAIL
)END
The error happens when I try to assign the command statement to 'R'. My guess is that the quotations are interfering but TSO commands have to use those quotations to specify the location of the Rexx exec. What should be the correct syntax to get this Rexx exec running from the specified folder? Sorry about the indentation for the code it got a little screwed up...