On Fri, Nov 25, 2016 at 6:00 AM, Peter <[email protected]> wrote: > Hi > > Is it possible to invoke a STC by submitting a batch Job ? If so will it > just run by adding Job card ? I am sorry for being ignorant. Any > suggestions would help. > > Peter > > What we do to start an STC using a batch job, which is scheduled by CA-7 is a job similar to:
//JOBNAME JOB (ACCT),'START STC',CLASS=A,MSGCLASS=H // COMMAND 'S STCNAME' //IEFBR14 EXEC PGM=IEFBR14 // This works _only_ if you internal reader is set to allow it. ref: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.hasa400/has2u600104.htm [quote] Auth=(Job=Yes|No,Device=Yes|No,System=Yes|No)Specifies the command authority for internal readers. These values authorize certain JES2 commands to be submitted through an internal reader. Note: This parameter has no effect when the associated resource class and profile in RACF® 1.9 or higher are active. For more information about using JES2 security facilities, see z/OS JES2 Initialization and Tuning Guide <https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.hasa400/has2v500htm?view=kc#has2v500> . Job=Yes|NoSpecifies that the device can (Yes) or cannot (No) issue commands that require job authority.Device=Yes|NoSpecifies that the device can (Yes) or cannot (No) issue commands that require device authority.System=Yes|NoSpecifies that the device can (Yes) or cannot (No) issue commands that require system authority. This parameter affects JES2 control statements only. Use the AUTH parameter of the JOBCLASS initialization statement to specify the authorization for JCL statements. (JES2 control statements begin with /* in columns 1 and 2. JCL statements begin with // in columns 1 and 2.) *Modification:* $T INTRDR operator command. [quote/] Many consider the above to be a security issue. They use other, more complex, methods to do this; often an in-house (or CBTtape) APF authorized program which uses the MGCRE macro to issue the START command. Can you run an STC as a batch job? Most of the time you can simply by putting the proper JOB card in front of it: //STCNAME JOB (ACCT),'RUN STCNAME',CLASS=A,MSGCLASS=X //STCNAME EXEC PROC=STCNAME // We used to do this to run CICS regions. However, this will _NOT_ work properly if the STC is a single step STC which runs a program which is in the PPT; set up in the SCHEDnn member of PARMLIB. ref: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ieae200/ieae200540.htm -- Heisenberg may have been here. Unicode: http://xkcd.com/1726/ Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
