\documentclass[main]{subfiles}
\begin{document}
\chapter{sub3: Hello World}
Message from sub3.tex.

\end{document}

