The Template Method
Define the skeleton of an algorithm, deferring some steps to subclasses (callers).
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Enchantment // Job Control Wards
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
//TEMPLAT JOB (ACCT),'TEMPLATE METHOD',CLASS=A,MSGCLASS=X
// JCLLIB ORDER=(TEKROM.WARDS.PROCLIB)
//*
//* THE PROC "DATAFLOW" DEFINES THE OVERALL SKELETON:
//* EXTRACT -> TRANSFORM -> LOAD
//* WE SUPPLY THE SPECIFIC "TRANSFORM" RULES
//RUNJOB EXEC PROC=DATAFLOW
//TRANS.SYSIN DD *
REPLACE MAGIC_WORD='OPEN_SESAME'
/*
The Template Method
The cataloged procedure (PROC) is the ultimate realization of the Template Method in JCL. A master architect defines the immutable skeleton of a ritual—for instance, an Extract-Transform-Load (ETL) pipeline. The caller executes the template but is required to provide the specific incantations for the transformation step via DD overrides. The structure is fixed, but the specific tactical steps are deferred to the invoking script.
Runic Tags:
#template-method
#jcl
#proc
#skeletal-logic