

Data Manipulation Language Statements › #ATTACH—instructs the system to initiate a new task › #ATTACH Example
#ATTACH Example
Example
The example shown below of the #ATTACH statement performs the following functions:
- Task MENU3 is initiated and added to the system dispatching list with a priority setting of 150.
- WPLIST is the work area where the system builds the parameter list.
- Register 3 is designated to receive the address of the ECB for the initiated task from the system.
- Control will be returned to the exit routine MENERR if the attach cannot be serviced for any of the optional conditions associated with the COND parameter.
#ATTACH TSKCD='MENU3',PLIST=WPLIST,PRI=150,ECB=(3),COND=ALL, *
ERROR=MENERR
Copyright © 2014 CA.
All rights reserved.
 
|
|