BobCAD V26 - Creating Sub Routine Programs

Hi can any one help
i am trying to find info on how to created Sub Routine Programs to reduce the amount of lines of code
created in a G-Code Program

has any one managed to do this
if so could you give me some pointers of how to do this
regards kev