BPX4STL (set_thread_limits) example

The following code sets the MAX_THREAD and MAX_THREAD_TASKS limits for pthread_created threads in the invoker's process. For the callable service, see set_thread_limits (BPX1STL, BPX4STL) — Change task or thread limits for pthread_created threads. AMODE 31 callers use BPX1STL (set_thread_limits) example.
                                              
         CALL  BPX4STL,              Set_thread_limits                 +
               (=A(STL_SET_BOTH),    Input: action            BPXYCONS +
               =A(50),               Input: new task limit             +
               =A(100),              Input: new thread limit           +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               MF=(E,PLIST)          ----------------------------------