TASK

The TASK macro allocates a task storage area addressable to all socket users communicating across a particular connection. Most commonly this is done by assigning one connection to each MVS™ subtask. If more than one module is using sockets within a connection or task, it is your responsibility to provide the task storage address to each user. Each program using sockets should define task storage using the instruction EZASMI TYPE=TASK with STORAGE=DSECT.

If this macro is not named, the default name EZASMTIE is assumed.

The following requirements apply to this call:
Read syntax diagramSkip visual syntax diagram
>>-EZASMI--TYPE=TASK--,STORAGE--=--+-DSECT-+-------------------><
                                   '-CSECT-'   

Keyword
Description
STORAGE
Input parameter. Defines one of the following storage definitions:
Keyword
Description
DSECT
Generates a DSECT.
CSECT
Generates an inline storage definition that can be used within a CSECT or as a part of a larger DSECT.