Thanks. This will work. Kind of convoluted -- a $T A command to issue a $VS command to issue an S command to start an STC that submits a job, but hey, it's mainframe. If it was easy we wouldn't get the big bucks.
Idle musing: why doesn't JES2 have a command to submit a job, either from a named DSN or from a defined PROCLIB? Seems like an incredibly obvious feature. I spent 30 minutes in the commands manual going "I know it has to be in here somewhere." Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of John McKown Sent: Wednesday, November 18, 2020 3:37 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? We did something like that before we had CA-7 (actually Runtrack). We used the $TA command to start a task which then submitted the actual JCL. The started task JCL looked something like: //OPER PROC JOBLIB=PROD.JOBS.JCLLIB,MEMBER=NOTHING //OPER EXEC PGM=IEBGENER //SYSIN DD DUMMY //SYSPRINT DD SYSOUT=Z PURGE CLASS //SYSUT2 DD SYSOUT=(*,INTRDR) //SYSUT1 DD DISP=SHR,DSN=&JOBLIB(&MEMBER) //* END OF PROC The $TA would include the $VS command like: $VS,'S OPER,MEMBER=SOMEJOB' ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN