We have a rather simple solution we use. We have this command in the JES commands member:
$TA,T=23.00,''$VS,''''S JOB,J=CLEANJES''''''' That starts a started task called JOB. It is in a library that is in the JES PROCLIB concatenation. It looks like this: //JOB PROC J=XXX, /* MEMBER NAME TO SUBMIT */ // L='SYS1.TXFZ.OPERJOBS.TZ' /* LIBRARY TO SUBMIT FROM */ //*----------------------------------------------------------------*/ //*@ STARTED TASK TO SUBMIT JOBS */ //*----------------------------------------------------------------*/ //STEP1 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT2 DD SYSOUT=(A,INTRDR) //SYSUT1 DD DISP=SHR,DSN=&L.(&J.) //SYSIN DD DUMMY The JES command formats out like this: S JOB,J=CLEANJES Which starts JOB and it submits CLEANJES from the SYS1.TXFZ.OPERJOBS.TZ library to the queue. The commands member gets submitted each day at midnight to refresh the commands. //CMDSTXFZ JOB (HSKP),'CMDSTXFZ',CLASS=K,MSGCLASS=9, // MSGLEVEL=(1,1),REGION=0M //* //* LIB: SYS1.TXFZ.OPERJOBS.TZ(CMDSTXFZ) //*@ COMMANDS TO ISSUE AT IPL TIME AND EVERY 24 HOURS //* // COMMAND '$CA,ALL' // COMMAND '$TA,T=05.00,''$VS,''''S JOB,J=CLEANJES''''''' // COMMAND '$TA,T=24.00,''$VS,''''S JOB,J=CMDSTXFZ''''''' // COMMAND '$SA,ALL' //STEP1 EXEC PGM=IEFBR14 /* Bobby Herring Texas Farm Bureau Insurance Waco, Tx -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Charles Mills Sent: Thursday, November 19, 2020 9:34 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? I was and am under control on the $TA part and fully intend to use that. It's not the whole solution, though. My question was "what can the $TA schedule that will run a job" and these replies have provided the answer. The answer is something like $T A,xxxx,86400,'$VS ''S RDR,DSN=MY.PDS(MYJOB)'' ' I may not have the syntax and all the quotes perfect, but that's the idea. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Jeremy Nicoll Sent: Thursday, November 19, 2020 1:20 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? On Thu, 19 Nov 2020, at 00:19, Charles Mills wrote: > Right! I remember that. I remember that was how you ran anything. You > started a real reader: it fired up the 2540 and read in the job. And > then you did a S WTR (?) to print the output. OS/360 on a 360/40. But the S RDR... command doesn't start a real reader. It's just starting a started task. The previous reply talking about $TA etc was for faking a ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN [http://www.txfb-ins.com/TFBICImages/jdpower.jpg] WWW.TXFB-INS.COM<http://www.txfb-ins.com> CONFIDENTIALITY STATEMENT: The foregoing message (including attachments) is covered by the Electronic Communication Privacy Act, 18 U.S.C. sections 2510-2521, and is CONFIDENTIAL. If you believe that it has been sent to you in error, do not read it. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. ' ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN