Year-end on the mainframe is a season not a single job. Finance closes the books. HR needs W-2 support registers. Tax prepares 1099 and informational returns. Auditors request YTD trial balance tie-outs. Regulators need annual statistical filings. Easytrieve programs that ran quietly all year become critical path—sorting twelve months of history, accumulating employee YTD earnings, producing proof listings penny perfect against tax engine output. Volume spikes, change freeze begins, batch windows extend past normal SLA, and every FINAL total faces external scrutiny. This tutorial describes year-end portfolio components, fiscal year parameterization, YTD accumulation patterns, tax support REPORT design, IRS file generation overview, reconciliation with payroll engine, archival and amendment workflows, operational runbook differences from daily and monthly jobs, and disaster recovery when year-end SORT abends at hour four. Beginners should study payroll and monthly report tutorials first—year-end composes those patterns at annual scale with compliance packaging on top.
| Deliverable | Purpose | Audience |
|---|---|---|
| YTD earnings register | Employee wage proof | HR and tax |
| Deduction summary | Box 12 and benefit validation | Tax vendor |
| 1099 support | Vendor payment totals | Accounts payable |
| Annual statistical | Regulatory filing | Compliance |
| Archive extract | Multi-year retention | Audit |
12345678910INIT-YEAREND. PROC GET YEAREND-CTL IF CTL-CLOSE-STATUS NE 'FINAL' DISPLAY 'YEAR NOT CLOSED' STOP END-IF MOVE CTL-FISCAL-YEAR TO RPT-YEAR MOVE CTL-TAX-YEAR TO TAX-YEAR MOVE 'YTD EARNINGS REGISTER' TO RPT-TITLE END-PROC
Guard against running before finance final close—preliminary runs use PRELIM flag in TITLE for draft proof only. TAX-YEAR may differ from fiscal year for calendar tax reporting.
Annual extract contains one row per employee per pay period or one consolidated YTD row per employee from payroll engine. If per-period rows, SORT by EMP-ID and REPORT CONTROL EMP-ID SUM GROSS NET TAX—accumulation in REPORT writer. If pre-consolidated YTD file, REPORT is formatting and validation not arithmetic. Mismatch between paths causes penny drift—document authoritative source.
123456789SORT USING ANNUAL-PAY GIVING SORTED-YTD KEY EMP-ID ASCENDING END-SORT REPORT YTD-EARNINGS JOB INPUT SORTED-YTD CONTROL EMP-ID LINE EMP-ID EMP-NAME GROSS-YTD NET-YTD FED-TAX-YTD MASK MONEY-MASK SUM END-REPORT
Human-readable REPORT for HR review—employee can compare to last pay stub sum. Exception section lists negative amounts, missing SSN, zero gross with nonzero tax—VALIDATE in JOB before REPORT drives exception work file.
Fixed-layout WRITE to IRS-1099-FILE per government spec—positions critical. Separate PROC per form type. Proof REPORT reads same file and prints interpretive listing for tax team—not sent to government.
Year-end SORT may run four to eight hours—allocate sufficient SORTWK space in JCL, monitor DASD free space weekly before season. Checkpoint restart from annual extract stage if SORT fails—do not re-extract from payroll production. On-call roster covers weekend runs. Change freeze means only pre-approved PTF—emergency fix requires tax director approval and parallel proof.
Post-filing correction produces AMENDED run with CTL-AMEND-VERSION incremented. TITLE prints AMENDED WATERMARK. Original year-end archive untouched. IRS correction files reference original control number per spec. Easytrieve INIT reads amendment control to include only affected employees when delta amendment supported.
Annual extract GDG retained per legal hold—often permanent for tax years. Report PDF and filing file stored with metadata FISCAL-YEAR TAX-YEAR RUN-VERSION. Catalog naming convention documented for auditors retrieving decade-old proof without operations heroics.
| Factor | Month-end | Year-end |
|---|---|---|
| Volume | One month | Twelve months consolidated |
| External filing | Rare | Tax and regulatory |
| Change freeze | Normal | Strict |
| Runtime | Hours | May exceed shift |
| Error tolerance | Low | Near zero for tax |
If year-end abends, preserve SORT input and SYSOUT. Do not rerun payroll extract without understanding failure point. SORT restart from SORTWK if supported; else rerun SORT from annual extract. Document RTO in runbook—tax filing deadline immovable. DR LPAR full annual proof before production retry when logic changed.
At the end of the school year the principal makes a big report card for the whole year—not just one month. The government wants a copy to make sure taxes are fair. Year-end processing is that whole-year report, checked many times, saved forever, and fixed with a clear amended label if someone finds a mistake later.
1. Year-end Easytrieve jobs typically process:
2. Fiscal year parameter comes from:
3. W-2 support reports often:
4. Year-end batch window differs because:
5. After year-end filing lock: