lindalibinbin
New Member
- Joined
- Dec 23, 2013
- Messages
- 6
I have a procedure that looks like this:
sub parent()
call child1
call child2
end sub
My question is, since child1 grabs the correct files, and child2 processes the new files, when child1 stops (i.e. feed file not ready to be grabbed), the whole thing should stop right there. But when I ran it, it will still continue onto child2, which in turn wastes time processing OLD data. So how do I tell the parent sub to stop if child1 cannot run all the way to its end?
Thanks!!
sub parent()
call child1
call child2
end sub
My question is, since child1 grabs the correct files, and child2 processes the new files, when child1 stops (i.e. feed file not ready to be grabbed), the whole thing should stop right there. But when I ran it, it will still continue onto child2, which in turn wastes time processing OLD data. So how do I tell the parent sub to stop if child1 cannot run all the way to its end?
Thanks!!
Last edited: