Creating subroutines using Script mode

Learn how to create subroutines using the Script development view.

About this task

Use subroutines to divide concepts based on task scope. You can develop these subroutines using the Script development view. Script development view is the interface in IBM RPA Studio where you can develop your bot using the IBM RPA script language. See more details in Script mode.


  1. Log in to the IBM RPA Studio.
  2. Click on Script tab.
  3. Enter the beginSub command.
  4. Enter the --name parameter after the command verb.
  5. Enter the subroutine's name.
  6. Enter the endSub command in the next line.

What to do next

After creating a subroutine, you can enter any command you want between the beginSub and endSub commands to develop your tasks.