The Prototype
Clone an existing arcane dataset to serve as a template for new constructs.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Conjuration // Job Control Wards
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
//PROTOTYP JOB (ACCT),'PROTOTYPE PATTERN',CLASS=A,MSGCLASS=X
//* CLONE A NEW DATASET USING AN EXISTING WARD AS A PROTOTYPE
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=TEKROM.NEW.CLONED.WARD,
// DISP=(NEW,CATLG,DELETE),
// LIKE=TEKROM.ANCIENT.TEMPLATE.WARD,
// SPACE=(CYL,(10,10))
The Prototype
Why weave a complex spell from scratch when you can clone an existing artifact? The Prototype pattern in JCL relies on the mystical LIKE= parameter during dataset allocation. It mirrors the DCB (Data Control Block) attributes of an ancient template dataset, creating a precise replica vessel ready to store new arcane energies without redefining the block size or record length.
Runic Tags:
#prototype
#jcl
#like-parameter
#allocation