Re: Is there a JES2 command to submit a job?
> Could you split it on multiple lines I am neither a console nor a JES command expert but I think the problem is that the maximum length console command from any source is 126 (?) characters. Does JES perhaps support some sort of continuation convention external to MVS console restrictions (as SLIP does)? I don't know. I am not sure if the RDR PROC that I have is IBM-original or if someone modified it for their own purposes, but it says //IEFRDERDDUNIT=TAPE,LABEL=(,NL),VOL=SER=JES2IN,DISP=OLD, // DCB=(RECFM=F,BLKSIZE=80,LRECL=80) Not the most helpful defaults. BTW, SDSF does not insert blanks. The OP in that thread had the blanks right there in front of him on the panel. SDSF just honored what was typed. Might it be user-helpful were SDSF to *strip* blanks at the end of a continued line? Quite possibly. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Tuesday, December 1, 2020 12:40 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? On Tue, 1 Dec 2020 11:52:48 -0800, Charles Mills wrote: > >My reading was that there was no MODIFY involved with $SUBMIT. It *is* a JES2 >command as I read things. It is I think the answer to what I was looking for >with my OP "is there a JES2 command to submit a job?" I chose to go with the >RDR proc because it looked a little simpler. > I misled myself, perhaps by the description of "$T (modify) SUBMITLIB" in: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.e0za100/ch1jes2_24_disk.htm And: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.hasa400/submitlib1.htm These concatenations can contain any combination of partitioned data sets (PDSs) or file system paths. "paths"!? Yaaay! It's almost as if they forgot the 20th Century. But, (Yaaay!): ... The concatenation supports any format PDS (LRECL and RECFM) that can be used to pass JCL into input processing. ... files in the path with 1-8 character uppercase file names that conform to standard PDS member names ... I suspect that restriction can be circumvented with symlinks. Are the lexical rules for JES commands the same as for "standard PDS member names"? >Footnote: Little did I know. What a PITA RDR turned out to be, at least on my >particular LPAR. I had to override RECFM, LRECL, BLKSIZE, UNIT, VOL and DISP >(as well as DSN of course). That made my $TA command too long for the MVS >console. I had to shorten my DSN and member names a little to get it to fit. > IEBGENER is so nice! It honors the label attributes! Could you split it on multiple lines provided that your (emulated) terminal doesn't insert extraneous blanks? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
On Tue, 1 Dec 2020 11:52:48 -0800, Charles Mills wrote: > >My reading was that there was no MODIFY involved with $SUBMIT. It *is* a JES2 >command as I read things. It is I think the answer to what I was looking for >with my OP "is there a JES2 command to submit a job?" I chose to go with the >RDR proc because it looked a little simpler. > I misled myself, perhaps by the description of "$T (modify) SUBMITLIB" in: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.e0za100/ch1jes2_24_disk.htm And: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.hasa400/submitlib1.htm These concatenations can contain any combination of partitioned data sets (PDSs) or file system paths. "paths"!? Yaaay! It's almost as if they forgot the 20th Century. But, (Yaaay!): ... The concatenation supports any format PDS (LRECL and RECFM) that can be used to pass JCL into input processing. ... files in the path with 1-8 character uppercase file names that conform to standard PDS member names ... I suspect that restriction can be circumvented with symlinks. Are the lexical rules for JES commands the same as for "standard PDS member names"? >Footnote: Little did I know. What a PITA RDR turned out to be, at least on my >particular LPAR. I had to override RECFM, LRECL, BLKSIZE, UNIT, VOL and DISP >(as well as DSN of course). That made my $TA command too long for the MVS >console. I had to shorten my DSN and member names a little to get it to fit. > IEBGENER is so nice! It honors the label attributes! Could you split it on multiple lines provided that your (emulated) terminal doesn't insert extraneous blanks? -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
The provided RDR proc is now useful only as an example. Note it uses IEBEDIT, the poor utility that gets no respect. When a started task name is IEFPROC, DD IEFRDER has some special properties that allow unit, and (I think) volume to be specified as positional operands, and any DD keywords on the start command are applied to it. Note: my recollection, not guaranteed to be definitive. Forty some-odd years ago, as an operator I submitted job streams with a RDR proc that replaced SYSUT1 with DSN=PROD.JCL(&JOB). Quite simple to "S XRDR,JOB=jobyyy", and I'd think fairly obvious. You can embellish that to your taste, but I like simple & easy-to-remember-&-type commands. I'll repeat that the // SCHEDULE statement is pretty handy. And if you activate the full JOB GROUP facility, you might not need any other job control system. sas -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
> IBM has already generously done that chore for IEBGENER. Touché. How about "any program capable of copying xSAM to xSAM plus INTRDR"? IEBGENER is a good shorthand. My reading was that there was no MODIFY involved with $SUBMIT. It *is* a JES2 command as I read things. It is I think the answer to what I was looking for with my OP "is there a JES2 command to submit a job?" I chose to go with the RDR proc because it looked a little simpler. Footnote: Little did I know. What a PITA RDR turned out to be, at least on my particular LPAR. I had to override RECFM, LRECL, BLKSIZE, UNIT, VOL and DISP (as well as DSN of course). That made my $TA command too long for the MVS console. I had to shorten my DSN and member names a little to get it to fit. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Tuesday, December 1, 2020 11:25 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? On Tue, 1 Dec 2020 10:43:14 -0800, Charles Mills wrote: >Well, they're different environments for one thing. FTP FILETYPE=JES is >wonderful, but it does not run as a JES2 command. Ditto TSO and ISPF SUBMIT. > >To nitpick, IEBGENER is irrelevant, right? SYSOUT INTRDR is the key; you can >get there equally well from IEBGENER, REXX, or a COBOL program. > Someone would need to code that Rexx or COBOL. IBM has already generously done that chore for IEBGENER. Apparently: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.e0za100/ch1jes2_24_disk.htm the disk writer does nothing but wait until a MODIFY command tells it to SUBMIT a job. Is that better than SUBMITting immediately and quitting? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
On Tue, 1 Dec 2020 10:43:14 -0800, Charles Mills wrote: >Well, they're different environments for one thing. FTP FILETYPE=JES is >wonderful, but it does not run as a JES2 command. Ditto TSO and ISPF SUBMIT. > >To nitpick, IEBGENER is irrelevant, right? SYSOUT INTRDR is the key; you can >get there equally well from IEBGENER, REXX, or a COBOL program. > Someone would need to code that Rexx or COBOL. IBM has already generously done that chore for IEBGENER. Apparently: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.e0za100/ch1jes2_24_disk.htm the disk writer does nothing but wait until a MODIFY command tells it to SUBMIT a job. Is that better than SUBMITting immediately and quitting? I'd need to look further to learn the constraints on the RECFM and LRECL of the member to submit from or the submitted JCL. I'm so optimistic as to expect there are none beyond those imposed by JES2 itself. "Job security is based on the source of the $SUBMIT command." I don't know what "source" means here, nor whose employment prospects are affected. The IEBGENER proc could have been written by customers many releases ago: //STEP EXEC PGM=IEBGENER //SYSUT1 DD DDNAME=IEFRDER /* I'm guessing. */ //SYSUT2 DD SYSOUT=(,INTRDR) //* ... -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Well, they're different environments for one thing. FTP FILETYPE=JES is wonderful, but it does not run as a JES2 command. Ditto TSO and ISPF SUBMIT. To nitpick, IEBGENER is irrelevant, right? SYSOUT INTRDR is the key; you can get there equally well from IEBGENER, REXX, or a COBOL program. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Tuesday, December 1, 2020 8:52 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? On Sun, 29 Nov 2020 18:47:56 -0800, Ed Jaffe wrote: > >IBM added many JES3 features to JES2 over the last decade in an effort >to make JES2 more palatable to JES3 customers. One of those features was >support for a "disk reader" -- something JES3 had for as long as anyone >can remember. > >The purpose of a disk reader is to have a JES command submit a job from >a PDS[E] member. If you're on the right release of JES2, you might have >this feature. > What credentials does this require? On which userID does that submitted job run? Must the JCL member contain a password? How is this preferable to OMVS submit, TSO SUBMIT, ISPF SUBMIT, IEBGENER INTRDR, or FTP FILETYPE=JES? (Only) the last two are not restricted by the archaic FB-80 restriction. What about disk reader? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
On Sun, 29 Nov 2020 18:47:56 -0800, Ed Jaffe wrote: > >IBM added many JES3 features to JES2 over the last decade in an effort >to make JES2 more palatable to JES3 customers. One of those features was >support for a "disk reader" -- something JES3 had for as long as anyone >can remember. > >The purpose of a disk reader is to have a JES command submit a job from >a PDS[E] member. If you're on the right release of JES2, you might have >this feature. > What credentials does this require? On which userID does that submitted job run? Must the JCL member contain a password? How is this preferable to OMVS submit, TSO SUBMIT, ISPF SUBMIT, IEBGENER INTRDR, or FTP FILETYPE=JES? (Only) the last two are not restricted by the archaic FB-80 restriction. What about disk reader? -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
On 11/18/2020 3:58 PM, Charles Mills wrote: 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." IBM added many JES3 features to JES2 over the last decade in an effort to make JES2 more palatable to JES3 customers. One of those features was support for a "disk reader" -- something JES3 had for as long as anyone can remember. The purpose of a disk reader is to have a JES command submit a job from a PDS[E] member. If you're on the right release of JES2, you might have this feature. -- Phoenix Software International Edward E. Jaffe 831 Parkview Drive North El Segundo, CA 90245 https://www.phoenixsoftware.com/ This e-mail message, including any attachments, appended messages and the information contained therein, is for the sole use of the intended recipient(s). If you are not an intended recipient or have otherwise received this email message in error, any use, dissemination, distribution, review, storage or copying of this e-mail message and the information contained therein is strictly prohibited. If you are not an intended recipient, please contact the sender by reply e-mail and destroy all copies of this email message and do not otherwise utilize or retain this email message or any or all of the information contained therein. Although this email message and any attachments or appended messages are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by the sender for any loss or damage arising in any way from its opening or use. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Why are you so easily offended? Why don't you think that accuracy matters? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Thursday, November 19, 2020 8:43 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? On Fri, 20 Nov 2020 00:10:14 +, Seymour J Metz wrote: >UNIT=INTRDR is not valid in JES2, and the internal reader is very much alive >and well. It does not present a security issue, and bog standard users can >exploit it freely. > Why do you so often feel it's necessary to state a snarky negative rather than constructively supplying an alternative or at least a citation such as: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.4.0/com.ibm.zos.v2r4.hasc300/has2z1_Submitting_to_the_internal_reader_from_jobs_or_tasks.htm I was told long ago not to bogart an INTRDR because a finite number would be genned and if all came to be in use hardly anyone could SUBMIT a job. I understand subsequently this constraint has been relieved; INTRDRs are created dynamically. -- gil -- 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
Re: Is there a JES2 command to submit a job?
On Fri, 20 Nov 2020 00:10:14 +, Seymour J Metz wrote: >UNIT=INTRDR is not valid in JES2, and the internal reader is very much alive >and well. It does not present a security issue, and bog standard users can >exploit it freely. > Why do you so often feel it's necessary to state a snarky negative rather than constructively supplying an alternative or at least a citation such as: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.4.0/com.ibm.zos.v2r4.hasc300/has2z1_Submitting_to_the_internal_reader_from_jobs_or_tasks.htm I was told long ago not to bogart an INTRDR because a finite number would be genned and if all came to be in use hardly anyone could SUBMIT a job. I understand subsequently this constraint has been relieved; INTRDRs are created dynamically. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
ObSchiller "Mit der Dummheit kämpfen Götter selbst vergebens" Pistol. Foot. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Tom Brennan Sent: Thursday, November 19, 2020 7:19 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Let's say the started task is setup as SURROGAT for multiple userids. As one of those id's, if I am given access to the JCL I could submit a job as if I was another one of those id's. No? On 11/19/2020 4:12 PM, Seymour J Metz wrote: > Sure, but why do you think that specifying the userid will do them any good? > > > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > > > > From: IBM Mainframe Discussion List on behalf of > Tom Brennan > Sent: Thursday, November 19, 2020 2:16 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Is there a JES2 command to submit a job? > > I just thought of one more problem with my scenario. If the JCL can be > updated by the user, then they could set USER= to whatever they want, > spoiling the idea of using a single STC for multiple users. > > On 11/19/2020 11:13 AM, Tom Brennan wrote: >> So if the JCL dataset can be updated by the user and they decide to >> remove the USER= parm, then the STC userid would get control. And in >> that case the unique userid set up for that STC would have little access >> and would likely fail on the first dataset. >> >> Do I have that about right? >> >> On 11/19/2020 11:04 AM, David Spiegel wrote: >>> Hi Skip, >>> "... the default SAF userid for STCs will be propagated to the >>> submitted job ..." >>> If the submitted job has a USER= on the Job Card and the RDR STC's >>> Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. >>> (I also would not give RDR the default STCID.) >>> >>> Regards, >>> David >>> >>> On 2020-11-19 13:45, Jesse 1 Robinson wrote: >>>> We use a similar process. The supplied RDR proc is a bit clumsy with >>>> stuff coded that would work as is for pretty much no one. So like >>>> many other shops, ages ago we wrote our own version with customized >>>> data set and unit parameters. >>>> >>>> The big problem with an RDR-like solution is that the default SAF >>>> userid for STCs will be propagated to the submitted job. That might >>>> be wildly inappropriate for the average user. >>>> >>>> . >>>> . >>>> J.O.Skip Robinson >>>> Southern California Edison Company >>>> Electric Dragon Team Paddler >>>> SHARE MVS Program Co-Manager >>>> 323-715-0595 Mobile >>>> 626-543-6132 Office ⇐=== NEW >>>> robin...@sce.com >>>> >>>> -Original Message- >>>> From: IBM Mainframe Discussion List On >>>> Behalf Of Herring, Bobby >>>> Sent: Thursday, November 19, 2020 8:26 AM >>>> To: IBM-MAIN@LISTSERV.UA.EDU >>>> Subject: (External):Re: Is there a JES2 command to submit a job? >>>> >>>> *** EXTERNAL EMAIL - Use caution when opening links or attachments *** >>>> >>>> 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: >>>> >>>> //JOBPROC 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.) >>>> //SYSINDD DUMMY >>>> >>>> The JES command formats out like this: >>>> >>>> S JOB,J=CLEANJES >>>> >>>> Which starts JOB and it submits CLEANJES from t
Re: Is there a JES2 command to submit a job?
AUTO is file 332 I believe. Referenced here along with JES2 $TA commands. http://www.longpelaexpertise.com/ezine/DoWeNeedAutomationSoftware.php On Fri, Nov 20, 2020 at 8:14 AM R.S. wrote: > W dniu 19.11.2020 o 21:46, Wayne Bickerdike pisze: > > Charles, > > > > I like Bobby Herring's solution. We use similar commands combined with > > automation at one customer. > > > > AUTO is very, very easy to install. > > > > It uses a PDS with this syntax : @2230 > > > > At 2230, it does whatever is in the member with a day flag: > > > > +1+2+ > > * MTWTF I SMF > > MTWTFSS S DELDUMP > > I clean up the dump dataset at intervals. > > Maybe I lost some posts, but I haven't seen any mention of the tool. > Is it something available on CBTtape? > > I guess there may be other tools on cbttape as well. This is another > point to mention, which I omitted for simplicity. > Yes, there is big gap between answer to help person and to describe all > possible solutions. > > -- > Radoslaw Skorupka > Lodz, Poland > > > > > > == > > Jeśli nie jesteś adresatem tej wiadomości: > > - powiadom nas o tym w mailu zwrotnym (dziękujemy!), > - usuń trwale tę wiadomość (i wszystkie kopie, które wydrukowałeś lub > zapisałeś na dysku). > Wiadomość ta może zawierać chronione prawem informacje, które może > wykorzystać tylko adresat.Przypominamy, że każdy, kto rozpowszechnia > (kopiuje, rozprowadza) tę wiadomość lub podejmuje podobne działania, > narusza prawo i może podlegać karze. > > mBank S.A. z siedzibą w Warszawie, ul. Prosta 18, 00-850 Warszawa, > www.mBank.pl, e-mail: kont...@mbank.pl. Sąd Rejonowy dla m. st. Warszawy > XII Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS 025237, NIP: > 526-021-50-88. Kapitał zakładowy (opłacony w całości) według stanu na > 01.01.2020 r. wynosi 169.401.468 złotych. > > If you are not the addressee of this message: > > - let us know by replying to this e-mail (thank you!), > - delete this message permanently (including all the copies which you have > printed out or saved). > This message may contain legally protected information, which may be used > exclusively by the addressee.Please be reminded that anyone who > disseminates (copies, distributes) this message or takes any similar > action, violates the law and may be penalised. > > mBank S.A. with its registered office in Warsaw, ul. Prosta 18, 00-850 > Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. District Court for the > Capital City of Warsaw, 12th Commercial Division of the National Court > Register, KRS 025237, NIP: 526-021-50-88. Fully paid-up share capital > amounting to PLN 169.401.468 as at 1 January 2020. > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- Wayne V. Bickerdike -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
It will not without a password Sent from my iPhone I promise you I can’t type or Spell on any smartphone > On Nov 19, 2020, at 18:12, Seymour J Metz wrote: > > Sure, but why do you think that specifying the userid will do them any good? > > > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > > > > From: IBM Mainframe Discussion List on behalf of > Tom Brennan > Sent: Thursday, November 19, 2020 2:16 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Is there a JES2 command to submit a job? > > I just thought of one more problem with my scenario. If the JCL can be > updated by the user, then they could set USER= to whatever they want, > spoiling the idea of using a single STC for multiple users. > >> On 11/19/2020 11:13 AM, Tom Brennan wrote: >> So if the JCL dataset can be updated by the user and they decide to >> remove the USER= parm, then the STC userid would get control. And in >> that case the unique userid set up for that STC would have little access >> and would likely fail on the first dataset. >> >> Do I have that about right? >> >>> On 11/19/2020 11:04 AM, David Spiegel wrote: >>> Hi Skip, >>> "... the default SAF userid for STCs will be propagated to the >>> submitted job ..." >>> If the submitted job has a USER= on the Job Card and the RDR STC's >>> Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. >>> (I also would not give RDR the default STCID.) >>> >>> Regards, >>> David >>> >>> On 2020-11-19 13:45, Jesse 1 Robinson wrote: >>>> We use a similar process. The supplied RDR proc is a bit clumsy with >>>> stuff coded that would work as is for pretty much no one. So like >>>> many other shops, ages ago we wrote our own version with customized >>>> data set and unit parameters. >>>> >>>> The big problem with an RDR-like solution is that the default SAF >>>> userid for STCs will be propagated to the submitted job. That might >>>> be wildly inappropriate for the average user. >>>> >>>> . >>>> . >>>> J.O.Skip Robinson >>>> Southern California Edison Company >>>> Electric Dragon Team Paddler >>>> SHARE MVS Program Co-Manager >>>> 323-715-0595 Mobile >>>> 626-543-6132 Office ⇐=== NEW >>>> robin...@sce.com >>>> >>>> -Original Message- >>>> From: IBM Mainframe Discussion List On >>>> Behalf Of Herring, Bobby >>>> Sent: Thursday, November 19, 2020 8:26 AM >>>> To: IBM-MAIN@LISTSERV.UA.EDU >>>> Subject: (E -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Let's say the started task is setup as SURROGAT for multiple userids. As one of those id's, if I am given access to the JCL I could submit a job as if I was another one of those id's. No? On 11/19/2020 4:12 PM, Seymour J Metz wrote: Sure, but why do you think that specifying the userid will do them any good? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Tom Brennan Sent: Thursday, November 19, 2020 2:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? I just thought of one more problem with my scenario. If the JCL can be updated by the user, then they could set USER= to whatever they want, spoiling the idea of using a single STC for multiple users. On 11/19/2020 11:13 AM, Tom Brennan wrote: So if the JCL dataset can be updated by the user and they decide to remove the USER= parm, then the STC userid would get control. And in that case the unique userid set up for that STC would have little access and would likely fail on the first dataset. Do I have that about right? On 11/19/2020 11:04 AM, David Spiegel wrote: Hi Skip, "... the default SAF userid for STCs will be propagated to the submitted job ..." If the submitted job has a USER= on the Job Card and the RDR STC's Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. (I also would not give RDR the default STCID.) Regards, David On 2020-11-19 13:45, Jesse 1 Robinson wrote: We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Herring, Bobby Sent: Thursday, November 19, 2020 8:26 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** 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: //JOBPROC 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.) //SYSINDD 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 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,,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?
Sure, but why do you think that specifying the userid will do them any good? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Tom Brennan Sent: Thursday, November 19, 2020 2:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? I just thought of one more problem with my scenario. If the JCL can be updated by the user, then they could set USER= to whatever they want, spoiling the idea of using a single STC for multiple users. On 11/19/2020 11:13 AM, Tom Brennan wrote: > So if the JCL dataset can be updated by the user and they decide to > remove the USER= parm, then the STC userid would get control. And in > that case the unique userid set up for that STC would have little access > and would likely fail on the first dataset. > > Do I have that about right? > > On 11/19/2020 11:04 AM, David Spiegel wrote: >> Hi Skip, >> "... the default SAF userid for STCs will be propagated to the >> submitted job ..." >> If the submitted job has a USER= on the Job Card and the RDR STC's >> Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. >> (I also would not give RDR the default STCID.) >> >> Regards, >> David >> >> On 2020-11-19 13:45, Jesse 1 Robinson wrote: >>> We use a similar process. The supplied RDR proc is a bit clumsy with >>> stuff coded that would work as is for pretty much no one. So like >>> many other shops, ages ago we wrote our own version with customized >>> data set and unit parameters. >>> >>> The big problem with an RDR-like solution is that the default SAF >>> userid for STCs will be propagated to the submitted job. That might >>> be wildly inappropriate for the average user. >>> >>> . >>> . >>> J.O.Skip Robinson >>> Southern California Edison Company >>> Electric Dragon Team Paddler >>> SHARE MVS Program Co-Manager >>> 323-715-0595 Mobile >>> 626-543-6132 Office ⇐=== NEW >>> robin...@sce.com >>> >>> -Original Message- >>> From: IBM Mainframe Discussion List On >>> Behalf Of Herring, Bobby >>> Sent: Thursday, November 19, 2020 8:26 AM >>> To: IBM-MAIN@LISTSERV.UA.EDU >>> Subject: (External):Re: Is there a JES2 command to submit a job? >>> >>> *** EXTERNAL EMAIL - Use caution when opening links or attachments *** >>> >>> 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: >>> >>> //JOBPROC 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.) >>> //SYSINDD 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' >>> //STEP1EXEC PGM=IEFBR14 >>> /* >>> >>> Bobby Herring >>> Texas Farm Bureau Insurance >>> Waco, Tx >&
Re: Is there a JES2 command to submit a job?
UNIT=INTRDR is not valid in JES2, and the internal reader is very much alive and well. It does not present a security issue, and bog standard users can exploit it freely. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Randy Hudson Sent: Thursday, November 19, 2020 2:18 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? In article <0a3501d6be09$afb97b80$0f2c7280$@mcn.org>, 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. > > Sometimes nostalgia actually is the answer. HASP made it easier; if you allocated an output data set as UNIT=INTRDR, whatever was written to it would get read as input to HASP (that is, if it started with a //JOB card, it would be treated as a batch job). I believe that was carried into JES2, as well, but for security reasons, it isn't used that way any more. -- 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
Re: Is there a JES2 command to submit a job?
Thanks... and that might be the key. Then it ends up like we used to run CA7 where application programmers created the JCL, but it was run through a review process before being implemented. In the early days the jobs all ran under the CA7 task's userid which had high access. Later USER= was used and of course JCL still reviewed. On 11/19/2020 11:22 AM, David Spiegel wrote: I'm not sure that I would give users access to update such JCL. On 2020-11-19 14:13, Tom Brennan wrote: So if the JCL dataset can be updated by the user and they decide to remove the USER= parm, then the STC userid would get control. And in that case the unique userid set up for that STC would have little access and would likely fail on the first dataset. Do I have that about right? On 11/19/2020 11:04 AM, David Spiegel wrote: Hi Skip, "... the default SAF userid for STCs will be propagated to the submitted job ..." If the submitted job has a USER= on the Job Card and the RDR STC's Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. (I also would not give RDR the default STCID.) Regards, David On 2020-11-19 13:45, Jesse 1 Robinson wrote: We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Herring, Bobby Sent: Thursday, November 19, 2020 8:26 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** 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 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,,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'
Re: Is there a JES2 command to submit a job?
Skinning a cat is certainly an idiom. Like most idioms, its origin is obscure or even controversial--not so much the idea, but the history of the phrase. I Googled it and delighted in the variations. For one, "There's more than one way to skin a cat means there are many ways to do something, there are many ways to achieve a goal. The oldest known use of the phrase dates back to 1854, in the work 'Way down East; or, Portraitures of Yankee Life by Seba Smith." Yet another citation says "But by the 19th century, the tide had turned decisively against poor Kitty. In 1840, American humorist Seba Smith indicated as much in her short story “The Money Diggers” when she wrote: “As it is said, ‘There are more ways than one to skin a cat,’ so are there more ways than one of digging for money.” Same person, different work cited. As I said, no one has ever detailed the options. And in the end, does it matter to the cat? . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of R.S. Sent: Thursday, November 19, 2020 1:10 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** W dniu 19.11.2020 o 21:48, David Spiegel pisze: > Hi Skip, > "... That means your job may contain DD * statements, etc. ..." > As of z/OS 1.13, Cataloged Procedures can have DD * Yes, I wanted to say that as well, but simply forgot. There are also new features in JCL since z/OS 2.1, which I didn't mention. However my point was to focus on started job - which is very, very close to the topic. And it is really simple, isn't it? BTW: "Hi Skip" - is it some kind of idiom? -- Radoslaw Skorupka Lodz, Poland -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
On Thu, 19 Nov 2020 11:21:17 -0800, Charles Mills wrote: >Yes indeed, if an unwashed user can update the member passed to RDR then all >bets are off. > There's an implied argument here supporting the crontab; /bin/submit approach: such unwashed users might be loath to further dirty their hands with UNIX facilities. >I would guess that if anything the "STC userid" would likely have more access >than was desirable. > >I am not proposing this as a universal solution; I am proposing it as MY >solution. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
W dniu 19.11.2020 o 22:13, David Spiegel pisze: Hi Radek, After I sent it, I realized that I addressed you incorrectly. Sorry. No problem at all. I just suspected there is some meaning of such sentence which I don't understand. Curiosity - that's all. Regards -- Radoslaw Skorupka Lodz, Poland == Jeśli nie jesteś adresatem tej wiadomości: - powiadom nas o tym w mailu zwrotnym (dziękujemy!), - usuń trwale tę wiadomość (i wszystkie kopie, które wydrukowałeś lub zapisałeś na dysku). Wiadomość ta może zawierać chronione prawem informacje, które może wykorzystać tylko adresat.Przypominamy, że każdy, kto rozpowszechnia (kopiuje, rozprowadza) tę wiadomość lub podejmuje podobne działania, narusza prawo i może podlegać karze. mBank S.A. z siedzibą w Warszawie, ul. Prosta 18, 00-850 Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. Sąd Rejonowy dla m. st. Warszawy XII Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS 025237, NIP: 526-021-50-88. Kapitał zakładowy (opłacony w całości) według stanu na 01.01.2020 r. wynosi 169.401.468 złotych. If you are not the addressee of this message: - let us know by replying to this e-mail (thank you!), - delete this message permanently (including all the copies which you have printed out or saved). This message may contain legally protected information, which may be used exclusively by the addressee.Please be reminded that anyone who disseminates (copies, distributes) this message or takes any similar action, violates the law and may be penalised. mBank S.A. with its registered office in Warsaw, ul. Prosta 18, 00-850 Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. District Court for the Capital City of Warsaw, 12th Commercial Division of the National Court Register, KRS 025237, NIP: 526-021-50-88. Fully paid-up share capital amounting to PLN 169.401.468 as at 1 January 2020. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
On Thu, 19 Nov 2020 15:48:41 -0500, David Spiegel wrote: > >"... That means your job may contain DD * statements, etc. ..." >As of z/OS 1.13, Cataloged Procedures can have DD * > That's newly true likewise of inline Procedures. Either provides a valuable ability to modify instream data sets as: //SYSIN DD *,SYMBOLS=JCLONLY -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
W dniu 19.11.2020 o 21:46, Wayne Bickerdike pisze: Charles, I like Bobby Herring's solution. We use similar commands combined with automation at one customer. AUTO is very, very easy to install. It uses a PDS with this syntax : @2230 At 2230, it does whatever is in the member with a day flag: +1+2+ * MTWTF I SMF MTWTFSS S DELDUMP I clean up the dump dataset at intervals. Maybe I lost some posts, but I haven't seen any mention of the tool. Is it something available on CBTtape? I guess there may be other tools on cbttape as well. This is another point to mention, which I omitted for simplicity. Yes, there is big gap between answer to help person and to describe all possible solutions. -- Radoslaw Skorupka Lodz, Poland == Jeśli nie jesteś adresatem tej wiadomości: - powiadom nas o tym w mailu zwrotnym (dziękujemy!), - usuń trwale tę wiadomość (i wszystkie kopie, które wydrukowałeś lub zapisałeś na dysku). Wiadomość ta może zawierać chronione prawem informacje, które może wykorzystać tylko adresat.Przypominamy, że każdy, kto rozpowszechnia (kopiuje, rozprowadza) tę wiadomość lub podejmuje podobne działania, narusza prawo i może podlegać karze. mBank S.A. z siedzibą w Warszawie, ul. Prosta 18, 00-850 Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. Sąd Rejonowy dla m. st. Warszawy XII Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS 025237, NIP: 526-021-50-88. Kapitał zakładowy (opłacony w całości) według stanu na 01.01.2020 r. wynosi 169.401.468 złotych. If you are not the addressee of this message: - let us know by replying to this e-mail (thank you!), - delete this message permanently (including all the copies which you have printed out or saved). This message may contain legally protected information, which may be used exclusively by the addressee.Please be reminded that anyone who disseminates (copies, distributes) this message or takes any similar action, violates the law and may be penalised. mBank S.A. with its registered office in Warsaw, ul. Prosta 18, 00-850 Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. District Court for the Capital City of Warsaw, 12th Commercial Division of the National Court Register, KRS 025237, NIP: 526-021-50-88. Fully paid-up share capital amounting to PLN 169.401.468 as at 1 January 2020. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Hi Radek, After I sent it, I realized that I addressed you incorrectly. Sorry. Regards, David On 2020-11-19 16:09, R.S. wrote: W dniu 19.11.2020 o 21:48, David Spiegel pisze: Hi Skip, "... That means your job may contain DD * statements, etc. ..." As of z/OS 1.13, Cataloged Procedures can have DD * Yes, I wanted to say that as well, but simply forgot. There are also new features in JCL since z/OS 2.1, which I didn't mention. However my point was to focus on started job - which is very, very close to the topic. And it is really simple, isn't it? BTW: "Hi Skip" - is it some kind of idiom? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
W dniu 19.11.2020 o 21:48, David Spiegel pisze: Hi Skip, "... That means your job may contain DD * statements, etc. ..." As of z/OS 1.13, Cataloged Procedures can have DD * Yes, I wanted to say that as well, but simply forgot. There are also new features in JCL since z/OS 2.1, which I didn't mention. However my point was to focus on started job - which is very, very close to the topic. And it is really simple, isn't it? BTW: "Hi Skip" - is it some kind of idiom? -- Radoslaw Skorupka Lodz, Poland == Jeśli nie jesteś adresatem tej wiadomości: - powiadom nas o tym w mailu zwrotnym (dziękujemy!), - usuń trwale tę wiadomość (i wszystkie kopie, które wydrukowałeś lub zapisałeś na dysku). Wiadomość ta może zawierać chronione prawem informacje, które może wykorzystać tylko adresat.Przypominamy, że każdy, kto rozpowszechnia (kopiuje, rozprowadza) tę wiadomość lub podejmuje podobne działania, narusza prawo i może podlegać karze. mBank S.A. z siedzibą w Warszawie, ul. Prosta 18, 00-850 Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. Sąd Rejonowy dla m. st. Warszawy XII Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS 025237, NIP: 526-021-50-88. Kapitał zakładowy (opłacony w całości) według stanu na 01.01.2020 r. wynosi 169.401.468 złotych. If you are not the addressee of this message: - let us know by replying to this e-mail (thank you!), - delete this message permanently (including all the copies which you have printed out or saved). This message may contain legally protected information, which may be used exclusively by the addressee.Please be reminded that anyone who disseminates (copies, distributes) this message or takes any similar action, violates the law and may be penalised. mBank S.A. with its registered office in Warsaw, ul. Prosta 18, 00-850 Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. District Court for the Capital City of Warsaw, 12th Commercial Division of the National Court Register, KRS 025237, NIP: 526-021-50-88. Fully paid-up share capital amounting to PLN 169.401.468 as at 1 January 2020. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Hi Skip, "... That means your job may contain DD * statements, etc. ..." As of z/OS 1.13, Cataloged Procedures can have DD * Regards, David On 2020-11-19 15:23, R.S. wrote: W dniu 19.11.2020 o 00:00, Charles Mills pisze: 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. My €0.02: 1. For professional scheduling there are commercial tools like BMC CTM, IBM TWS, CA ESP, etc. Of course it is not worth to pay just to schedule one job a day. However ...maybe you have it already in your shop? Just check it. 2. For JES2 (and no batch scheduler) I would use $TA... $VS S member. That means your JES2 'wannabe-scheduler' periodically issue START command, which is MVS command. Old farts say it is for starting members of PROCLIB, that mean JCL procedures. It is no longer true (for years), you can start a job using same command and same library. That means your job may contain DD * statements, etc. Not enough? Well you started job/procedure may submit regular job. Caution: is it SIMPLE. Mainframe gurus will hate it ;-) 3. There are other ways to skin a cat. Some of them include existing tools, like cron, however really aspiring way is to start with assembler, APF and MODESET 0. ;-) (yes, this is kind of joke) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Charles, I like Bobby Herring's solution. We use similar commands combined with automation at one customer. AUTO is very, very easy to install. It uses a PDS with this syntax : @2230 At 2230, it does whatever is in the member with a day flag: +1+2+ * MTWTF I SMF MTWTFSS S DELDUMP I clean up the dump dataset at intervals. On Fri, Nov 20, 2020 at 7:24 AM R.S. wrote: > W dniu 19.11.2020 o 00:00, Charles Mills pisze: > > 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. > > My €0.02: > 1. For professional scheduling there are commercial tools like BMC CTM, > IBM TWS, CA ESP, etc. Of course it is not worth to pay just to schedule > one job a day. However ...maybe you have it already in your shop? Just > check it. > > > 2. For JES2 (and no batch scheduler) I would use $TA... $VS S member. > That means your JES2 'wannabe-scheduler' periodically issue START > command, which is MVS command. > Old farts say it is for starting members of PROCLIB, that mean JCL > procedures. It is no longer true (for years), you can start a job using > same command and same library. That means your job may contain DD * > statements, etc. > Not enough? Well you started job/procedure may submit regular job. > > Caution: is it SIMPLE. Mainframe gurus will hate it ;-) > > > 3. There are other ways to skin a cat. Some of them include existing > tools, like cron, however really aspiring way is to start with > assembler, APF and MODESET 0. ;-) > (yes, this is kind of joke) > > -- > Radoslaw Skorupka > Lodz, Poland > > > > > > == > > Jeśli nie jesteś adresatem tej wiadomości: > > - powiadom nas o tym w mailu zwrotnym (dziękujemy!), > - usuń trwale tę wiadomość (i wszystkie kopie, które wydrukowałeś lub > zapisałeś na dysku). > Wiadomość ta może zawierać chronione prawem informacje, które może > wykorzystać tylko adresat.Przypominamy, że każdy, kto rozpowszechnia > (kopiuje, rozprowadza) tę wiadomość lub podejmuje podobne działania, > narusza prawo i może podlegać karze. > > mBank S.A. z siedzibą w Warszawie, ul. Prosta 18, 00-850 Warszawa, > www.mBank.pl, e-mail: kont...@mbank.pl. Sąd Rejonowy dla m. st. Warszawy > XII Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS 025237, NIP: > 526-021-50-88. Kapitał zakładowy (opłacony w całości) według stanu na > 01.01.2020 r. wynosi 169.401.468 złotych. > > If you are not the addressee of this message: > > - let us know by replying to this e-mail (thank you!), > - delete this message permanently (including all the copies which you have > printed out or saved). > This message may contain legally protected information, which may be used > exclusively by the addressee.Please be reminded that anyone who > disseminates (copies, distributes) this message or takes any similar > action, violates the law and may be penalised. > > mBank S.A. with its registered office in Warsaw, ul. Prosta 18, 00-850 > Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. District Court for the > Capital City of Warsaw, 12th Commercial Division of the National Court > Register, KRS 025237, NIP: 526-021-50-88. Fully paid-up share capital > amounting to PLN 169.401.468 as at 1 January 2020. > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- Wayne V. Bickerdike -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
There are apparently several ways to skin a cat. Are they documented anywhere? Aside from the question of why do it, I've always wondered if the cat cares... . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of R.S. Sent: Thursday, November 19, 2020 12:24 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** W dniu 19.11.2020 o 00:00, Charles Mills pisze: > 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. My €0.02: 1. For professional scheduling there are commercial tools like BMC CTM, IBM TWS, CA ESP, etc. Of course it is not worth to pay just to schedule one job a day. However ...maybe you have it already in your shop? Just check it. 2. For JES2 (and no batch scheduler) I would use $TA... $VS S member. That means your JES2 'wannabe-scheduler' periodically issue START command, which is MVS command. Old farts say it is for starting members of PROCLIB, that mean JCL procedures. It is no longer true (for years), you can start a job using same command and same library. That means your job may contain DD * statements, etc. Not enough? Well you started job/procedure may submit regular job. Caution: is it SIMPLE. Mainframe gurus will hate it ;-) 3. There are other ways to skin a cat. Some of them include existing tools, like cron, however really aspiring way is to start with assembler, APF and MODESET 0. ;-) (yes, this is kind of joke) -- Radoslaw Skorupka Lodz, Poland -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
W dniu 19.11.2020 o 00:00, Charles Mills pisze: 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. My €0.02: 1. For professional scheduling there are commercial tools like BMC CTM, IBM TWS, CA ESP, etc. Of course it is not worth to pay just to schedule one job a day. However ...maybe you have it already in your shop? Just check it. 2. For JES2 (and no batch scheduler) I would use $TA... $VS S member. That means your JES2 'wannabe-scheduler' periodically issue START command, which is MVS command. Old farts say it is for starting members of PROCLIB, that mean JCL procedures. It is no longer true (for years), you can start a job using same command and same library. That means your job may contain DD * statements, etc. Not enough? Well you started job/procedure may submit regular job. Caution: is it SIMPLE. Mainframe gurus will hate it ;-) 3. There are other ways to skin a cat. Some of them include existing tools, like cron, however really aspiring way is to start with assembler, APF and MODESET 0. ;-) (yes, this is kind of joke) -- Radoslaw Skorupka Lodz, Poland == Jeśli nie jesteś adresatem tej wiadomości: - powiadom nas o tym w mailu zwrotnym (dziękujemy!), - usuń trwale tę wiadomość (i wszystkie kopie, które wydrukowałeś lub zapisałeś na dysku). Wiadomość ta może zawierać chronione prawem informacje, które może wykorzystać tylko adresat.Przypominamy, że każdy, kto rozpowszechnia (kopiuje, rozprowadza) tę wiadomość lub podejmuje podobne działania, narusza prawo i może podlegać karze. mBank S.A. z siedzibą w Warszawie, ul. Prosta 18, 00-850 Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. Sąd Rejonowy dla m. st. Warszawy XII Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS 025237, NIP: 526-021-50-88. Kapitał zakładowy (opłacony w całości) według stanu na 01.01.2020 r. wynosi 169.401.468 złotych. If you are not the addressee of this message: - let us know by replying to this e-mail (thank you!), - delete this message permanently (including all the copies which you have printed out or saved). This message may contain legally protected information, which may be used exclusively by the addressee.Please be reminded that anyone who disseminates (copies, distributes) this message or takes any similar action, violates the law and may be penalised. mBank S.A. with its registered office in Warsaw, ul. Prosta 18, 00-850 Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. District Court for the Capital City of Warsaw, 12th Commercial Division of the National Court Register, KRS 025237, NIP: 526-021-50-88. Fully paid-up share capital amounting to PLN 169.401.468 as at 1 January 2020. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
I'm not sure that I would give users access to update such JCL. On 2020-11-19 14:13, Tom Brennan wrote: So if the JCL dataset can be updated by the user and they decide to remove the USER= parm, then the STC userid would get control. And in that case the unique userid set up for that STC would have little access and would likely fail on the first dataset. Do I have that about right? On 11/19/2020 11:04 AM, David Spiegel wrote: Hi Skip, "... the default SAF userid for STCs will be propagated to the submitted job ..." If the submitted job has a USER= on the Job Card and the RDR STC's Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. (I also would not give RDR the default STCID.) Regards, David On 2020-11-19 13:45, Jesse 1 Robinson wrote: We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Herring, Bobby Sent: Thursday, November 19, 2020 8:26 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** 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 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,,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 [https://nam11.safelinks.protection.outlook.
Re: Is there a JES2 command to submit a job?
Yeah, but, the STC Userid has to have SURROGAT to it, otherwise it fails. On 2020-11-19 14:16, Tom Brennan wrote: I just thought of one more problem with my scenario. If the JCL can be updated by the user, then they could set USER= to whatever they want, spoiling the idea of using a single STC for multiple users. On 11/19/2020 11:13 AM, Tom Brennan wrote: So if the JCL dataset can be updated by the user and they decide to remove the USER= parm, then the STC userid would get control. And in that case the unique userid set up for that STC would have little access and would likely fail on the first dataset. Do I have that about right? On 11/19/2020 11:04 AM, David Spiegel wrote: Hi Skip, "... the default SAF userid for STCs will be propagated to the submitted job ..." If the submitted job has a USER= on the Job Card and the RDR STC's Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. (I also would not give RDR the default STCID.) Regards, David On 2020-11-19 13:45, Jesse 1 Robinson wrote: We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Herring, Bobby Sent: Thursday, November 19, 2020 8:26 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** 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 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,,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 --
Re: Is there a JES2 command to submit a job?
Yes indeed, if an unwashed user can update the member passed to RDR then all bets are off. I would guess that if anything the "STC userid" would likely have more access than was desirable. I am not proposing this as a universal solution; I am proposing it as MY solution. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Tom Brennan Sent: Thursday, November 19, 2020 11:14 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? So if the JCL dataset can be updated by the user and they decide to remove the USER= parm, then the STC userid would get control. And in that case the unique userid set up for that STC would have little access and would likely fail on the first dataset. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
In article <0a3501d6be09$afb97b80$0f2c7280$@mcn.org>, 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. > > Sometimes nostalgia actually is the answer. HASP made it easier; if you allocated an output data set as UNIT=INTRDR, whatever was written to it would get read as input to HASP (that is, if it started with a //JOB card, it would be treated as a batch job). I believe that was carried into JES2, as well, but for security reasons, it isn't used that way any more. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
I just thought of one more problem with my scenario. If the JCL can be updated by the user, then they could set USER= to whatever they want, spoiling the idea of using a single STC for multiple users. On 11/19/2020 11:13 AM, Tom Brennan wrote: So if the JCL dataset can be updated by the user and they decide to remove the USER= parm, then the STC userid would get control. And in that case the unique userid set up for that STC would have little access and would likely fail on the first dataset. Do I have that about right? On 11/19/2020 11:04 AM, David Spiegel wrote: Hi Skip, "... the default SAF userid for STCs will be propagated to the submitted job ..." If the submitted job has a USER= on the Job Card and the RDR STC's Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. (I also would not give RDR the default STCID.) Regards, David On 2020-11-19 13:45, Jesse 1 Robinson wrote: We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Herring, Bobby Sent: Thursday, November 19, 2020 8:26 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** 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 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,,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 / archi
Re: Is there a JES2 command to submit a job?
So if the JCL dataset can be updated by the user and they decide to remove the USER= parm, then the STC userid would get control. And in that case the unique userid set up for that STC would have little access and would likely fail on the first dataset. Do I have that about right? On 11/19/2020 11:04 AM, David Spiegel wrote: Hi Skip, "... the default SAF userid for STCs will be propagated to the submitted job ..." If the submitted job has a USER= on the Job Card and the RDR STC's Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. (I also would not give RDR the default STCID.) Regards, David On 2020-11-19 13:45, Jesse 1 Robinson wrote: We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Herring, Bobby Sent: Thursday, November 19, 2020 8:26 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** 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 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,,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 [https://eur05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.txfb-ins.com%2FTFBICImages%2Fjdpower.jpg&data=04%7C01%7C%7Cdbe10b7b8aec4101bfa808d88cb
Re: Is there a JES2 command to submit a job?
Hi Charles, If you code all of my overrides, the problem of VOL=, DCB= etc. will be bypassed and you will be able to use the RDR Cataloged Procedure forever. Regards, David On 2020-11-19 14:02, Charles Mills wrote: stuff coded that would work as is for pretty much no one At least on this system (which I inherited) IEFRDER specifies UNIT=TAPE,DCB=BLKSIZE=80, and a hard-coded VOLSER. "Work for pretty much no one" is overly optimistic! I'm aware of the userid issue and think I can live with it. I suppose USER= on the JOB (with appropriate SURROGAT permissions) might alleviate it somewhat. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Jesse 1 Robinson Sent: Thursday, November 19, 2020 10:46 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. -- 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
Re: Is there a JES2 command to submit a job?
Hi Skip, "... the default SAF userid for STCs will be propagated to the submitted job ..." If the submitted job has a USER= on the Job Card and the RDR STC's Userid has SURROGAT to all owner of SUBMIT'd Jobs, this is not a problem. (I also would not give RDR the default STCID.) Regards, David On 2020-11-19 13:45, Jesse 1 Robinson wrote: We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Herring, Bobby Sent: Thursday, November 19, 2020 8:26 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** 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: //JOBPROC 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.) //SYSINDD 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' //STEP1EXEC PGM=IEFBR14 /* Bobby Herring Texas Farm Bureau Insurance Waco, Tx -Original Message- From: IBM Mainframe Discussion List 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,,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 [https://eur05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.txfb-ins.com%2FTFBICImages%2Fjdpower.jpg&data=04%7C01%7C%7Cdbe10b7b8aec4101bfa808d88cbb5cf6%7C84df9e7fe9f640afb435%7C1%7C0%7C637414083644530352%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=FYz%2BlCiv3iZUyAe2nX4slghEUb0KeeVXqP5N0XIf9e4%3D&reserved=0] https://eur05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.txfb-ins.com%2F&data=04%7C01%7C%7Cdb
Re: Is there a JES2 command to submit a job?
> stuff coded that would work as is for pretty much no one At least on this system (which I inherited) IEFRDER specifies UNIT=TAPE,DCB=BLKSIZE=80, and a hard-coded VOLSER. "Work for pretty much no one" is overly optimistic! I'm aware of the userid issue and think I can live with it. I suppose USER= on the JOB (with appropriate SURROGAT permissions) might alleviate it somewhat. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Jesse 1 Robinson Sent: Thursday, November 19, 2020 10:46 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
You're right about the cyclical refresh of auto commands. Without some kind of intervention, JES2 auto commands with T= will expire at midnight. So we schedule an auto command for midnight to reinstate all auto commands. The process is remarkably resilient. I recall only a handful of failures in 25 years. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Charles Mills Sent: Thursday, November 19, 2020 8:47 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** Thanks. > why not AUTO Trying to keep things simple. Trying to avoid one more piece in the puzzle if possible. Nothing whatsoever against AUTO specifically or the CBT tape in general. > issue SLEEP on schedule Great idea. I will look into that. > Self-perpetuating job, that submits itself as its last step Something about that bothers me. A failure would end the chain until manual intervention restarted it. I know, I am not being entirely logically consistent here. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Wayne Bickerdike Sent: Thursday, November 19, 2020 8:22 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Charles, Why don't you grab a copy of AUTO from the CBT tape. It has a scheduler function. We use it on Dallas to schedule the SLEEP command after business hours to save some costs. We also have a schedule set up to do ADRDDSU backups and an offsite FTP. You could also have a job that submits itself to the internal reader when it completes, code it as TYPRUN=HOLD and have AUTO release it. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
We use a similar process. The supplied RDR proc is a bit clumsy with stuff coded that would work as is for pretty much no one. So like many other shops, ages ago we wrote our own version with customized data set and unit parameters. The big problem with an RDR-like solution is that the default SAF userid for STCs will be propagated to the submitted job. That might be wildly inappropriate for the average user. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Herring, Bobby Sent: Thursday, November 19, 2020 8:26 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Is there a JES2 command to submit a job? *** EXTERNAL EMAIL - Use caution when opening links or attachments *** 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: //JOBPROC 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.) //SYSINDD 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 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,,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 -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Thanks. > why not AUTO Trying to keep things simple. Trying to avoid one more piece in the puzzle if possible. Nothing whatsoever against AUTO specifically or the CBT tape in general. > issue SLEEP on schedule Great idea. I will look into that. > Self-perpetuating job, that submits itself as its last step Something about that bothers me. A failure would end the chain until manual intervention restarted it. I know, I am not being entirely logically consistent here. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Wayne Bickerdike Sent: Thursday, November 19, 2020 8:22 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Charles, Why don't you grab a copy of AUTO from the CBT tape. It has a scheduler function. We use it on Dallas to schedule the SLEEP command after business hours to save some costs. We also have a schedule set up to do ADRDDSU backups and an offsite FTP. You could also have a job that submits itself to the internal reader when it completes, code it as TYPRUN=HOLD and have AUTO release it. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
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: //JOBPROC 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.) //SYSINDD 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 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,,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
Re: Is there a JES2 command to submit a job?
Charles, Why don't you grab a copy of AUTO from the CBT tape. It has a scheduler function. We use it on Dallas to schedule the SLEEP command after business hours to save some costs. We also have a schedule set up to do ADRDDSU backups and an offsite FTP. You could also have a job that submits itself to the internal reader when it completes, code it as TYPRUN=HOLD and have AUTO release it. On Thu, Nov 19, 2020 at 11:31 AM Seymour J Metz wrote: > Obvious answer: because HASP is Half ASP. But you don't need a JES2 > command; IBM provides a proc called RDR that copies its input to an > internal reader. > > > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > > > > From: IBM Mainframe Discussion List on behalf > of Charles Mills > Sent: Wednesday, November 18, 2020 6:58 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Is there a JES2 command to submit a job? > > 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 > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- Wayne V. Bickerdike -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
On Thu, 19 Nov 2020, at 15:46, Rupert Reynolds wrote: > Most people I mention it to are surprised, and they expect it keep running > until a modiFy or stoP tells it otherwise. A good example (if it still is?) of a STC that starts to do something and then stops is/was SMFDUMP. We used to use STCs for archiving NetView logs, for copying SYS1.DUMPxx to tape (and runnng initial IPCS analysis on them but leaving the listings from that online, linked to a sysprogs dump-management utility. Pattern matching on dump titles dictated which IPCS verbs were used on which dumps). I also used STCs to do things on behalf of low-privileged TSO users, when ispf dialogs they used would request things and SA/390 automation would start the right tasks (having checked those users were permitted to make those requests). Some of these STCs ran in only a few seconds. Often they had multiple steps and combined code written in assember and rexx. -- Jeremy Nicoll - my opinions are my own. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
It used to be common to issue a bogus START to force allocation processing. I would be surprised if there weren't a lot of very short started tasks in use. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Rupert Reynolds Sent: Thursday, November 19, 2020 10:46 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Most people I mention it to are surprised, and they expect it keep running until a modiFy or stoP tells it otherwise. That's the reason I mentioned it :-) Roops On Thu., Nov. 19, 2020, 14:22 Jeremy Nicoll, wrote: > On Thu, 19 Nov 2020, at 14:12, Rupert Reynolds wrote: > > Off the cuff, I'm pretty sure it runs as an STC, but one that doesn't do > > the things you'd normally expect an STC to do. > > There's nothing that an STC is "normally expected to do". Some run for > ages, but some don't. The significant point is that they start immediately > (rather than waiting for an initiator), and they tend to do system-y things > rather than user or batch-suite ones. > > -- > Jeremy Nicoll - my opinions are my own > -- 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
Re: Is there a JES2 command to submit a job?
Most people I mention it to are surprised, and they expect it keep running until a modiFy or stoP tells it otherwise. That's the reason I mentioned it :-) Roops On Thu., Nov. 19, 2020, 14:22 Jeremy Nicoll, wrote: > On Thu, 19 Nov 2020, at 14:12, Rupert Reynolds wrote: > > Off the cuff, I'm pretty sure it runs as an STC, but one that doesn't do > > the things you'd normally expect an STC to do. > > There's nothing that an STC is "normally expected to do". Some run for > ages, but some don't. The significant point is that they start immediately > (rather than waiting for an initiator), and they tend to do system-y things > rather than user or batch-suite ones. > > -- > Jeremy Nicoll - my opinions are my own > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Hi Charles, If you are using the "stock" Cataloged Procedure, you will have to include all of the "overrides" I specified. Regards, David On 2020-11-19 10:34, Charles Mills wrote: 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,,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 . -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
As others have asked, what is "the usual"? Sometimes an STC ends almost immediately after the START because of some error that is entirely local to the STC, such as a bad parameter. z/OS does not seem to mind at all. >From z/OS's point of view, an STC that generates an error message and then quits is entirely acceptable. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Rupert Reynolds Sent: Thursday, November 19, 2020 6:13 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Off the cuff, I'm pretty sure it runs as an STC, but one that doesn't do the things you'd normally expect an STC to do. I don't know whether any versions of MVS and z/OS, or any automation, would react to an "STC" ending without doing the usual, but I'd guess not. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Have you considered OMVS's CRON? -Original Message- From: IBM Mainframe Discussion List On Behalf Of Charles Mills Sent: Thursday, November 19, 2020 10:34 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? [External Email. Exercise caution when clicking links or opening attachments.] 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,,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 Confidentiality notice: This e-mail message, including any attachments, may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
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,,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
Re: Is there a JES2 command to submit a job?
Unless you were really storage constrained, you started a writer and left it running untill the next IPL. Also, MVT had something called an ASB Reader, which ran at high speed in a small region, then ran a reader/interpreter from the DASD file it created. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Charles Mills Sent: Wednesday, November 18, 2020 7:19 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? 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. Sometimes nostalgia actually is the answer. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of David Spiegel Sent: Wednesday, November 18, 2020 3:59 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Hi Charles, All of the previous responses did not address your situation. Here is a solution that only old-timers like myself would think of: S RDR,DSN=mypds(mymember),UNIT=,VOL=,DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920),DISP=SHR RDR is available in SYs1.PROCLIB and has been since dinosaurs roamed the earth. Regards, David On 2020-11-18 18:00, Charles Mills 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 -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
There's almost nothing special about an STC; it's got essentially the same environment as, e.g., APPC, ASCH, JOB, TSU. It has a userid, and its access is limited to that for the userid. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Rupert Reynolds Sent: Thursday, November 19, 2020 9:12 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Off the cuff, I'm pretty sure it runs as an STC, but one that doesn't do the things you'd normally expect an STC to do. I don't know whether any versions of MVS and z/OS, or any automation, would react to an "STC" ending without doing the usual, but I'd guess not. I know MVS 3.8 (TK4-) accepts this happily, as I start my own code from SYS1.PARMLIB(COMMNDxx) to create an extra control block and then exit. Roops On Thu., Nov. 19, 2020, 13:05 Paul Gilmartin, < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Thu, 19 Nov 2020 11:04:32 +, Rupert Reynolds wrote: > > > >//MYJOB DD SYSOUT=(A,INTRDR) > >looks like a. In fact I've used that from TSO, lthough I can't remember > >whether the ALLOC command hndles INTRDR, or whether I used SVC 99. > > > WRITER(INTRDR) > > Likewise for BPXWDYN. > > >If the job can justifiably be in something like SYS1.PROCLIB, it's even > >easier. > >S MYJOB :-) > > Does that run it as a batch job or as a started task? > > -- gil > > -- > 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
Re: Is there a JES2 command to submit a job?
On Thu, 19 Nov 2020, at 14:12, Rupert Reynolds wrote: > Off the cuff, I'm pretty sure it runs as an STC, but one that doesn't do > the things you'd normally expect an STC to do. There's nothing that an STC is "normally expected to do". Some run for ages, but some don't. The significant point is that they start immediately (rather than waiting for an initiator), and they tend to do system-y things rather than user or batch-suite ones. -- Jeremy Nicoll - my opinions are my own. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Off the cuff, I'm pretty sure it runs as an STC, but one that doesn't do the things you'd normally expect an STC to do. I don't know whether any versions of MVS and z/OS, or any automation, would react to an "STC" ending without doing the usual, but I'd guess not. I know MVS 3.8 (TK4-) accepts this happily, as I start my own code from SYS1.PARMLIB(COMMNDxx) to create an extra control block and then exit. Roops On Thu., Nov. 19, 2020, 13:05 Paul Gilmartin, < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Thu, 19 Nov 2020 11:04:32 +, Rupert Reynolds wrote: > > > >//MYJOB DD SYSOUT=(A,INTRDR) > >looks like a. In fact I've used that from TSO, lthough I can't remember > >whether the ALLOC command hndles INTRDR, or whether I used SVC 99. > > > WRITER(INTRDR) > > Likewise for BPXWDYN. > > >If the job can justifiably be in something like SYS1.PROCLIB, it's even > >easier. > >S MYJOB :-) > > Does that run it as a batch job or as a started task? > > -- gil > > -- > 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
Re: Is there a JES2 command to submit a job?
If you have a card reader and you start RDR with the address of a card reader then it submits jobs from that cards reader. Subject to security, you can read from any dataset as long as it supports FB80. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Jeremy Nicoll Sent: Thursday, November 19, 2020 4: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 scheduler. All you need is a way to run an IEBGENER to an INTRDR and that could also be in a normal job (subject to what one's security software allows). You only need the $TA aspect if you want JES2 to handle the aspect of deciding when the STC is to execute. -- Jeremy Nicoll - my opinions are my own. -- 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
Re: Is there a JES2 command to submit a job?
STC. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Thursday, November 19, 2020 8:05 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? On Thu, 19 Nov 2020 11:04:32 +, Rupert Reynolds wrote: > >//MYJOB DD SYSOUT=(A,INTRDR) >looks like a. In fact I've used that from TSO, lthough I can't remember >whether the ALLOC command hndles INTRDR, or whether I used SVC 99. > WRITER(INTRDR) Likewise for BPXWDYN. >If the job can justifiably be in something like SYS1.PROCLIB, it's even >easier. >S MYJOB :-) Does that run it as a batch job or as a started task? -- gil -- 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
Re: Is there a JES2 command to submit a job?
On Thu, 19 Nov 2020 11:04:32 +, Rupert Reynolds wrote: > >//MYJOB DD SYSOUT=(A,INTRDR) >looks like a. In fact I've used that from TSO, lthough I can't remember >whether the ALLOC command hndles INTRDR, or whether I used SVC 99. > WRITER(INTRDR) Likewise for BPXWDYN. >If the job can justifiably be in something like SYS1.PROCLIB, it's even >easier. >S MYJOB :-) Does that run it as a batch job or as a started task? -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
On Wed, Nov 18, 2020 at 6:20 PM Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Wed, 18 Nov 2020 17:39:33 -0600, John McKown wrote: > > > most z/OS people > >are still fairly ignorant of z/OS UNIX and are reluctant to use it. A > few > >years ago I had another sysprog complain about it because, in his words, > >"It isn't Windows!" > > > What's z/OS? Chopped liver or Windows? > Well, of the two choices, I actually like chopped liver. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Ah yes //MYJOB DD SYSOUT=(A,INTRDR) looks like a. In fact I've used that from TSO, lthough I can't remember whether the ALLOC command hndles INTRDR, or whether I used SVC 99. If the job can justifiably be in something like SYS1.PROCLIB, it's even easier. S MYJOB :-) Roops On Thu., Nov. 19, 2020, 09:20 Jeremy Nicoll, wrote: > 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 > scheduler. All you need is a way to run an IEBGENER to an INTRDR and > that could also be in a normal job (subject to what one's security software > allows). > > You only need the $TA aspect if you want JES2 to handle the aspect of > deciding when the STC is to execute. > > -- > Jeremy Nicoll - my opinions are my own. > > -- > 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
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 scheduler. All you need is a way to run an IEBGENER to an INTRDR and that could also be in a normal job (subject to what one's security software allows). You only need the $TA aspect if you want JES2 to handle the aspect of deciding when the STC is to execute. -- Jeremy Nicoll - my opinions are my own. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Obvious answer: because HASP is Half ASP. But you don't need a JES2 command; IBM provides a proc called RDR that copies its input to an internal reader. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Charles Mills Sent: Wednesday, November 18, 2020 6:58 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? 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 -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
> Is there a JES2 command to submit a job from a PDS or PROCLIB, roughly > analogous to TSO SUBMIT? Charles, You can use the SCHEDULE command to run the job at a particular time. Here is a detailed explanation of the parms along with examples https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.ieab600/iea3b6_schedule_examples_of_schedule_statements.htm To make it run every day at the specified time, just add another step to generate the SCHEDULE command for next day execution. Something like this //LASTSTEP EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD DISP=SHR,DSN=Your.PDS(subjob) //SORTOUT DD SYSOUT=(*,INTRDR) //SYSINDD * OPTION COPY INREC IFOUTLEN=80, IFTHEN=(WHEN=INIT, OVERLAY=(81:DATE1(/)+1)), IFTHEN=(WHEN=(01,22,CH,EQ,C'// SCHEDULE HOLDUNTL=('), BUILD=(C'// SCHEDULE HOLDUNTL=(''', C'17:00''', C',''', 86,02, $ MM 88,01, $ / 89,02, $ DD 85,01, $ / 81,04, $ C''')')) /* I had a sample member in my pds(subjob) and it has the following contents //SCHEDJOB JOB (B004273,BIN#,BLDG#,DEPT#),&SYSUID, // MSGCLASS=H,MSGLEVEL=(1,1),CLASS=A,NOTIFY=&SYSUID /* // SCHEDULE HOLDUNTL=('17:00','11/18/2020') /* //STEP0100 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT1 DD * ABC //SYSUT2 DD SYSOUT=* //SYSINDD DUMMY /* To this we will add the last step as shown above. That last step will change the SCHEDULE command to "Current date+1" as hold and it will submit the job to INTRDR. So as soon this job ran the next day's job will be in the INPUT queue waiting for it to be executed. So you submit the job once and it will take care of submitting itself everyday until you cancel Further if you have any question please let me know Thanks. Kolusu DFSORT Development IBM Corporation IBM Mainframe Discussion List wrote on 11/18/2020 04:00:59 PM: > From: Charles Mills > To: IBM-MAIN@LISTSERV.UA.EDU > Date: 11/18/2020 04:01 PM > Subject: [EXTERNAL] Is there a JES2 command to submit a job? > Sent by: IBM Mainframe Discussion List > > 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
Re: Is there a JES2 command to submit a job?
Subject to security constraints. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of David Spiegel Sent: Wednesday, November 18, 2020 6:58 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Hi Charles, All of the previous responses did not address your situation. Here is a solution that only old-timers like myself would think of: S RDR,DSN=mypds(mymember),UNIT=,VOL=,DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920),DISP=SHR RDR is available in SYs1.PROCLIB and has been since dinosaurs roamed the earth. Regards, David On 2020-11-18 18:00, Charles Mills 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
Re: Is there a JES2 command to submit a job?
Available in V2R3! Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Wednesday, November 18, 2020 4:24 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Thanks. Looks perfect. $T SUBMITLIB to set it up. Unfortunately, environment is V2R3. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Thanks. Looks perfect. $T SUBMITLIB to set it up. Unfortunately, environment is V2R3. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Mark Jacobs Sent: Wednesday, November 18, 2020 3:57 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? JES2 at the z/OS 2.4 level has a $SUBMIT command, with the infrastructure to dynamically add datasets and such to use for job submission. The commands manual has information about it. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
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. Sometimes nostalgia actually is the answer. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of David Spiegel Sent: Wednesday, November 18, 2020 3:59 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there a JES2 command to submit a job? Hi Charles, All of the previous responses did not address your situation. Here is a solution that only old-timers like myself would think of: S RDR,DSN=mypds(mymember),UNIT=,VOL=,DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920),DISP=SHR RDR is available in SYs1.PROCLIB and has been since dinosaurs roamed the earth. Regards, David On 2020-11-18 18:00, Charles Mills 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
Re: Is there a JES2 command to submit a job?
On Wed, 18 Nov 2020 17:39:33 -0600, John McKown wrote: > most z/OS people >are still fairly ignorant of z/OS UNIX and are reluctant to use it. A few >years ago I had another sysprog complain about it because, in his words, >"It isn't Windows!" > What's z/OS? Chopped liver or Windows? On Wed, 18 Nov 2020 18:58:54 -0500, David Spiegel wrote: > >All of the previous responses did not address your situation. > S > RDR,DSN=mypds(mymember),UNIT=,VOL=,DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920),DISP=SHR >On 2020-11-18 18:00, Charles Mills wrote: >> >> * once a day.* (No, I don't have a real scheduler.) -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
Hi Charles, All of the previous responses did not address your situation. Here is a solution that only old-timers like myself would think of: S RDR,DSN=mypds(mymember),UNIT=,VOL=,DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920),DISP=SHR RDR is available in SYs1.PROCLIB and has been since dinosaurs roamed the earth. Regards, David On 2020-11-18 18:00, Charles Mills 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
Re: Is there a JES2 command to submit a job?
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
Re: Is there a JES2 command to submit a job?
JES2 at the z/OS 2.4 level has a $SUBMIT command, with the infrastructure to dynamically add datasets and such to use for job submission. The commands manual has information about it. Mark Jacobs Sent from ProtonMail, Swiss-based encrypted email. GPG Public Key - https://api.protonmail.ch/pks/lookup?op=get&search=markjac...@protonmail.com ‐‐‐ Original Message ‐‐‐ On Wednesday, November 18th, 2020 at 6:00 PM, Charles Mills 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
Re: Is there a JES2 command to submit a job?
The classic way is to use a reader proc, traditionally named RDR, which may well still be included in z/OS. But usually a variation that reads members from a PDS is more useful. Check out // SCHEDULE TIME= in JCL. I use it all the time. sas -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Is there a JES2 command to submit a job?
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 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 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
Re: Is there a JES2 command to submit a job?
Also, You can enter SUB next to the member name while in ISPF. Just enter SUB vs. B or E or V Subject: Re: Is there a JES2 command to submit a job? I do something like that for my personal stuff. And it is good in that you can have a separate crontab for submitting different jobs with different RACF IDs. The only "problem" is, unless I am out of date, most z/OS people are still fairly ignorant of z/OS UNIX and are reluctant to use it. A few years ago I had another sysprog complain about it because, in his words, "It isn't Windows!" On Wed, Nov 18, 2020 at 5:36 PM Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Wed, 18 Nov 2020 15:00:59 -0800, Charles Mills wrote: > > >Is there a JES2 command to submit a job from a PDS or PROCLIB, > >roughly analogous to TSO SUBMIT? > > > > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zo > s.v2r3.bpxa400/jclsub.htm > > plus crontab > > >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 > ... > >? > SDSF "SJ"? > > -- gil > > -- > 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
Re: Is there a JES2 command to submit a job?
I do something like that for my personal stuff. And it is good in that you can have a separate crontab for submitting different jobs with different RACF IDs. The only "problem" is, unless I am out of date, most z/OS people are still fairly ignorant of z/OS UNIX and are reluctant to use it. A few years ago I had another sysprog complain about it because, in his words, "It isn't Windows!" On Wed, Nov 18, 2020 at 5:36 PM Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Wed, 18 Nov 2020 15:00:59 -0800, Charles Mills wrote: > > >Is there a JES2 command to submit a job from a PDS or PROCLIB, roughly > >analogous to TSO SUBMIT? > > > > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxa400/jclsub.htm > > plus crontab > > >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 > ... > >? > SDSF "SJ"? > > -- gil > > -- > 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
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' 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 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
Re: Is there a JES2 command to submit a job?
On Wed, 18 Nov 2020 15:00:59 -0800, Charles Mills wrote: >Is there a JES2 command to submit a job from a PDS or PROCLIB, roughly >analogous to TSO SUBMIT? > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxa400/jclsub.htm plus crontab >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 ... >? SDSF "SJ"? -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN