# Viewing code and executing the Route

## Procedure

1. Click the Code tab at the bottom of the design workspace to have a look at the generated code.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case-csql12.png)

   As shown in the code, three subRoutes are built from cTimer to cLog.
2. Click the Run view to display it and click the Run button to launch the execution of your route. You can also press F6 to execute it.

   RESULT: The log messages in the subRoutes are printed in the console. In the first subRoute, a TEST\_TABLE is created in the database. In the second subRoute, three rows are written into the TEST\_TABLE. In the third subRoute, exception occurs and rollback is triggered.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case-csql13.png)