When using a function that calls USS, the following error occurs with the DB2 Administrative Task Scheduler:
(TTHD000) Execution begins at time yyyy-mm-dd-hh.mm.ss.000000
(TTHD000) num invocations = 1
(TTHD000) PassTicket generated for user = "uuuuuuuu"
(TTHD000) cannot login RC = -1
(TTHD000) pthread_security_np() errno = 111
(TTHD000) EDC5111I Permission denied. (errno2=0x0BE80000)
(TTHD000) Execution status NOTRUN
(TTHD000) Execution ends at time yyyy-mm-dd-hh.mm.ss.000000
Use the SIGNMULTI keyword when defining the passticket definitions to Top Secret:
TSS ADD(NDT) PSTKAPPL(applid) SESSKEY(xxxx) SIGNMULTI
SIGNMULTI means that the passticket can be used more than once during its lifespan.
See Controlling Applications that Invoke R_ticketserv / R_GenSec for more information.