Question: how to submit jcl using rexx?
Answer: Below sample REXX program submits a job when it is executed.
USER = USERID()
QUEUE "//"USER"A JOB (11212),'TEST',CLASS=G,MSGCLASS=X,"
QUEUE "// NOTIFY="USER",PRTY=14"
QUEUE "//STEP01 EXEC PGM=IEFBR14 "
QUEUE "// "
QUEUE "$$ "
O = OUTTRAP("OUTPUT.",," CONCAT")