Now that I solved my DOS/VS JCL reclen & REXX problem, I successfully created my COBOL compile REXX exec, that wraps the JCL around the COBOL source and submits it to DOS/VS.
I never liked storing the compile JCL with the source. The COBOL source library should only be source, IMHO. With this program working, it’s easy to adapt for other uses such as compile & link or Assembly. Combined with VM/CMS it makes DOS/VS much more interactive.
I should also note that this assumes you have the 2314 DASD or a patch that René Ferland described in a Moshix video, titled “Cobol and PL_I on DOS_VS – M92”.