Thread considerations

A field procedure runs in the same job as the operation that initiated the field procedure. However, the field procedure may or may not run in a different system thread (fenced or not fenced) which are separate from the thread from the initiating request.

Because the field procedure runs in the same job, it shares much of the same environment as the initiating request. However, because it may run under a separate thread, the following threads considerations apply:
  • Field procedures do not inherit any program adopted authority that may have been active at the time the request was initiated. Field procedure authority comes from the authority associated with the field procedure program or from the authority of the user running.
  • The field procedure cannot perform any operation that is blocked from being run in a secondary thread.
  • The field procedure program must be created such that it either runs under a named activation group or in the activation group of its caller (ACTGRP parameter). Programs that specify *CALLER will run in the default activation group.