Randy
In STCTBL – you have your PREREQ column
Add 2 additional columns. PREREQS_AT_INITIAL PREREQS_AFTER_UP
At startup, before STATEMAN starts anything: copy PREREQS_AT_INITIAL to PREREQ
Once a task is UP UP, Copy PREREQS_AFTER_UP to PREREQ
Once a task goes to current state DOWN, Copy PREREQS_AT_INITIAL to PREREQ
PREREQS_AFTER_UP – most will have a keyword to indicate “SAME_AS_INITIAL” - so these are never changed – no need to copy over.
In some cases, this will not have the prereqs you only needed for initial startup of the task..
Let me know if you have any questions
Sal