Execution is where Easytrieve earns its keep. The source has been compiled, the load module has been promoted, and the scheduler starts the job against real business files. This phase turns declarative report logic into printed listings, extracts, audit trails, and operational evidence. Beginners should treat execution as more than “the job turned green.” A complete execution review checks data volume, report routing, totals, and downstream handoff.
When the scheduler submits the job, JES allocates the step, z/OS resolves DD statements, and the loader brings the program into memory along with required Easytrieve runtime services. The program initializes working storage, opens files, processes records through JOB INPUT or explicit logic, formats reports, closes files, writes diagnostics, and ends with a condition code. Broadcom's beginner examples show this loop clearly: define fields, JOB INPUT, conditional PRINT, and REPORT layout produce formatted output without hand-written read loops.
123456//DAILYRPT EXEC PGM=SALESRPT //STEPLIB DD DSN=PROD.APP.LOADLIB,DISP=SHR // DD DSN=PROD.EASYTRIEVE.CBAALOAD,DISP=SHR //SALESIN DD DSN=PROD.SALES.DAILY,DISP=SHR //SYSPRINT DD SYSOUT=* //SALESRPT DD SYSOUT=A
PGM=SALESRPT runs the linked application module. STEPLIB finds that module and the Easytrieve runtime. SALESIN is the business input matching FILE SALESIN in source. SYSPRINT captures diagnostics. SALESRPT routes the business report to class A or the site-standard report class.
| Artifact | Purpose |
|---|---|
| Input datasets | Business files the program reads record by record |
| Output datasets | Extracts, archives, or downstream feeds created by the job |
| SYSPRINT | Diagnostics, DISPLAY output, and sometimes counts |
| Report DD streams | Formatted human-readable report output |
| Return code | Operations signal for success, warning, or failure |
Most beginner reports rely on JOB INPUT because Easytrieve handles open, read, process, and close automatically. During execution, each input record becomes the current context for IF tests, calculations, and PRINT requests. The report writer then applies titles, headings, line spacing, page breaks, and totals according to the REPORT definition.
1234567891011121314FILE PERSNL FB(150 1800) EMPNAME 17 8 A EMPNO 9 5 N DEPT 98 3 N GROSS 94 4 P 2 JOB INPUT PERSNL IF DEPT = 911 PRINT PAY-RPT END-IF REPORT PAY-RPT LINESIZE 80 TITLE 01 'PERSONNEL REPORT EXAMPLE-1' LINE 01 DEPT EMPNAME EMPNO GROSS
At execution time, only records with DEPT equal to 911 contribute detail lines to PAY-RPT. If the input file is empty, the job may still complete successfully while producing little or no detail output. That is why operations checks counts, not only return codes.
Operations cares about timeliness, return codes, abends, reruns, and downstream impact. A late job may still be successful. A on-time job with RC=4 may require investigation depending on shop standards. Easytrieve execution should be documented in a run book with expected start time, input dataset pattern, output destination, owner contact, and rerun rules.
| Pattern | When used |
|---|---|
| Execute linked load module | Production and controlled QA reruns |
| Compile-and-go with EZTPA00 | Developer tests and urgent ad hoc runs |
| Rerun after upstream fix | Input file or predecessor job was late or wrong |
Easytrieve batch jobs are often rerunnable when input and output dispositions are designed for it. If a job creates a new generation with DELETE on failure, rerun may be safe. If it updates a file in place, rerun can duplicate results. Design execution JCL and output DISP values with rerun behavior in mind and document it in the run book.
Execution is showtime. The practice is over, the recipe is approved, and the cake is baked for the real party. If the party guests do not get cake, it does not matter that the recipe looked fine on paper. Execution is when the real people, real files, and real reports show whether the program worked.
1. Execution in the lifecycle means:
2. A production execute step usually uses PGM=
3. Before execution, z/OS first:
4. A successful execution review should include:
5. Execution differs from compilation because: