The Ontario Building Code | Building Drain Ends
7.4.6.6. building Drain Ends
(1) Where a building drain enters a building above the elevation of the bottom of the wall of a building, the building drainmay be deemed to terminate at the first point that the drainage pipe changes direction from the horizontal to the vertical.
7.4.7. Cleanouts