Routine

A routine is “[a] series or group of instructions usually contained within a main program analogous to a paragraph within textual work.”