Use of the task token UEPTSTOK

The task token, UEPTSTOK, provides the address of a 4-byte area that you can use to pass information between successive enqueue requests in the same task. For example, you can use the task token if you need to pass information between successive invocations of the XNQEREQ exit.

By contrast, UEPNQTOK is usable only for the duration of a single enqueue request, because its contents can be destroyed at the end of the request.
Note:
  1. The lifetime of the area pointed to by UEPTSTOK is the lifetime of the task.
  2. The value of UEPTSTOK is shared by all the exits to which it is passed during the lifetime of the task.
Table 1. User arguments and associated keywords, data types, and input/output types
Argument Keyword Data type Input/output type
Arg1 RESOURCE DATA-AREA input
Arg2 LENGTH BIN(15) input
Arg3 MAXLIFETIME CVDA input


dfha3l6.html | Timestamp icon Last updated: Monday, 5 June 2017