✨ ARCANUM RUNE DIFFICULTY: Apprentice Creational

The Builder of JCL

Step-by-step construction of complex mainframe jobs.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Builder
ARCANUM SCHOOL: Transmutation // Structuring
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
/* ooRexx Builder */
::class JCLBuilder
::attribute jcl
::method init
  self~jcl = ''
::method addJobCard
  self~jcl = self~jcl || "//JOB1 JOB (ACCT),'BUILD',CLASS=A" || '0a'x
::method addStep
  use arg program
  self~jcl = self~jcl || "//STEP1 EXEC PGM="||program || '0a'x
::method getResult
  return self~jcl

Assembling a JCL spell requires precise syntax. The Builder ensures each card is punched exactly when needed.

Runic Tags: #builder #jcl #rexx