The goto command and subroutines

Last Updated : Sep 08, 2012 |

Use the goto vector command to branch vector processing to a subroutine or to a specific step in the vector. The goto vector command works with the return command to return vector processing to the calling vector. When a goto vector command is executed, the vector and the subsequent step number for the command are stored with the call. This is the return destination that is used with subroutines.

When the goto vector command branches to the specified vector, any data associated with the call remains with the call. Examples of call-associated data are collected digits and dial-ahead digits. Changes made stay with the call when the call returns to the calling vector.