i am currently facing a problem in multitasking. i wanted to know how to know abt whether a task has ended normally or abnormally using its TCB info ?? is ther any flag in tcb for abend info ??
i am trying multitasking operation . creating tasks using ATTACH macro.
suppose a main task has created such 10 subtasks, i want to know tht whether those subtasks are ended normally or abnormally ...
All depends on how sophisticated is Your program structure...
if You look at the attach/attachx macro description
You will notice ....
Quote:
,ETXR=exit rtn addr
Specifies the address of the end-of-task exit routine to be given control after the new task is normally or abnormally terminated. The exit routine receives control when the originating task becomes active after the subtask is terminated, and must be in virtual storage when required. If you code this parameter, you must issue a DETACH macro to remove the subtask from the system after the subtask terminates.