EXEC 2 is mostly compatible with CMS EXEC but EXEC 2 scripts must begin with an &TRACE statement.
In the context of EXEC 2 and CMS EXEC compatibility, it's essential to note that EXEC 2 scripts typically run in conjunction with CMS EXEC, yet they must begin with a specific tracing command (&TRACE) to function correctly.