Joined: 20 Oct 2006 Posts: 6970 Location: porcelain throne
you could nest the procedure. I that makes it hard if not impossible to override.
otherwise, I don't see how to prevent someone from using proper JCL syntax to override something, especially in an instream procedure.
Joined: 20 Feb 2009 Posts: 108 Location: Kansas City
Dbz is correct, you can only code overrides one level down so nesting procedures would work. But if they're both instream there's nothing from keeping a clever JCL user from overriding the nested procedure from the instream procedure. From "Modifying Nest Procedures" chap 5 of the JCL reference:
Modifying or additional JCL statements apply to one level of nesting only. You
can use statements to modify statements in a procedure only for the level of
nesting at which the EXEC statement for that procedure appears.