What about submit command you can use IKJTSOEV to set up a tso environment in a batch job and then use the tso service routine
L. rX,CVTPTR L Rx,CVTTVT(,RX) L. Rx,TSVTASF-TSVT(RX) > On Nov 18, 2020, at 6:37 PM, John McKown <john.archie.mck...@gmail.com> wrote: > > 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' > > If necessary, we could change the default JOBLIB to something else. I can't > remember what RACF id the job ran under. This was long ago, I think before > the STARTED class in RACF. > >> On Wed, Nov 18, 2020 at 5:01 PM Charles Mills <charl...@mcn.org> wrote: >> >> Is there a JES2 command to submit a job from a PDS or PROCLIB, roughly >> analogous to TSO SUBMIT? >> >> I want to run a predefined job, unmodified, once a day. (No, I don't have a >> real scheduler.) I figured I could do something with $T A,I=86400,'command' >> but I don't see what the command would be. It seems like an obvious thing >> for JES2 to be able to do. >> >> Do I use $VS,'S proc' and run it like a started task that just happens to >> end after a minute or so? >> >> I vaguely recall there is a way to submit a job (via TSO or whatever) such >> that it gets held and then could be released with a JES2 command but also >> left in the input queue for another release? Am I on the right track? Or >> ... >> ? >> >> Thanks. Sorry for the newbie question. I'm a newbie operator. >> >> Charles >> >> ---------------------------------------------------------------------- >> For IBM-MAIN subscribe / signoff / archive access instructions, >> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN >> > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN