Can an STC logonid in ACF2 be used for a batch job or for inheritance to a batch job?
An ACF2 logonid with the STC attribute cannot submit batch jobs or inherit a batch job. Attempting to do so will cause the job to run under the batch default logonid. If a batch default is not specified, the job will fail.
However, the STC attribute can be removed from the logonid and a GSO STC record can be created to associate the logonid with a started task id. This will allow the id to both be used for a started task and to submit jobs provided the logonid is given the JOB attribute.
Note that the STC region will need to be re-started for the logonid change to take effect. Since this logonid can now be used for batch, consider adding other restrictions to the logonid record such as PROGRAM, SUBAUTH, SOURCE, or even a password. When started as a started task, the password is not checked.
Example of creating a GSO STC record:
INSERT STC.STCBATCH LOGONID(STCBATCH) STCID(STCBATCH)
To remove the STC attribute:
CHANGE STCBATCH NOSTC
STCBATCH GLSTCOPSTCBATCH NAME(STC BATCH LID)
CO(STC) DEPT(GL) SITE(OP) )
PRIVILEGES CREATE(02/18/16) DUMPAUTH JOB NON-CNCL