Subroutine

A subroutine is “a routine that can be part of another routine; analogous to a sentence within a paragraph of narrative text.”