I try to use rexx invoke a utility,ie IEHLIST to list a VTOC and it turns out wrong control card... the source code is below.
/*REXX*/
TRACE ?R
"ALLOC DATASET('USERID.OUTPUT') FILE(SYSPRINT) SHR"
"ALLOC DATASET('USERID.INPUT') FILE(SYSIN) SHR"
PARM="SYSIN SYSPRINT"
ADDRESS LINKMVS "IEHLIST" PARM
SAY "RC=" RC
"FREE FI(SYSPRINT)"
"FREE FI(SYSIN)"
EXIT
And I put the utility control statement "LISTVTOC VOL=3390=USER02" in the sequential dataset USERID.INPUT
the RC = 8
message is IEH103I INVALID CONTROL CARD---LISTVTOC VOL=3390=6FCAT1
I don't know why it is invalid....