Not every Easytrieve program runs overnight in batch. SCREEN activities let programs converse with terminal operators: show panels, accept keys and typed input, read files, apply updates, and optionally EXECUTE batch JOB or SORT work when the user confirms an action. If you learned Easytrieve through payroll listings and JCL, SCREEN is the bridge to online inquiry and data entry applications still running in many financial and administrative departments. This page explains how SCREEN activities fit program structure, how they differ from JOB loops, and how screen procedures organize interactive logic.
Broadcom classifies SCREEN alongside PROGRAM, JOB, and SORT as an activity type within the Activity section. SCREEN is not optional syntax sprinkled into JOB—it is its own labeled block with executable statements and screen PROCs at the end. A program may contain both SCREEN and JOB activities: online menus that call batch reports are a classic pattern. PROGRAM activities can EXECUTE SCREEN or vice versa depending on flow design.
SCREEN activities define screen-oriented transactions. They display data to the terminal, accept operator input, validate entries against Library fields, read and update files, and branch based on function keys or input values. Unlike JOB INPUT loops that process every record in a file, SCREEN logic is event-driven by user interaction—each screen display and input cycle runs procedural statements tied to that panel flow.
| Aspect | JOB activity | SCREEN activity |
|---|---|---|
| Primary driver | File records via JOB INPUT | Terminal operator actions |
| Typical schedule | Batch window, scheduler | Online during business hours |
| Output | Reports, extracts, file updates | Panels, messages, optional EXECUTE batch |
| Procedures | Job PROCs after executable statements | Screen PROCs after screen logic |
12345678910SCREEN NAME INQUIRY DISPLAY PANEL1 ACCEPT EMPNO IF EMPNO NE SPACES READ PERSNL DISPLAY PANEL2 END-IF IF PF3 EQ ON STOP END-IF
INQUIRY labels the SCREEN activity. DISPLAY shows a defined panel layout. ACCEPT reads operator input into EMPNO. Conditional READ fetches personnel data when an ID was entered. A second DISPLAY shows detail. PF3 handling exits—exact key names and syntax follow your release documentation and shop standards. The point for beginners is sequential interactive logic rather than record-by-record batch iteration.
SCREEN programs still rely on Library FILE and DEFINE statements. The employee file PERSNL must be defined with correct layouts before READ or UPDATE in screen logic. Online updates demand extra care: concurrent batch jobs may update the same files, requiring coordination through record locking, transaction boundaries, or operational schedules documented at your site. SCREEN does not remove data definition discipline—it intensifies it because errors appear immediately to end users.
Broadcom documents that SCREEN can EXECUTE JOB or SORT activities for processes like printing a report after the operator approves data. The batch JOB retains REPORT definitions and FILE layouts already in the program; SCREEN supplies the human trigger. Separate JCL may still be required for spool routing when batch EXECUTE runs inside an online session. Test both paths: pure batch JOB and SCREEN-triggered EXECUTE.
Screen PROCs modularize validation, repeated DISPLAY sequences, and error message handling. They appear after executable SCREEN statements, similar to job PROC placement. Shared PROCs reduce duplication when multiple panels validate employee numbers or date fields the same way. Keep PROC names distinct from job PROCs and REPORT PROCs to avoid cross-reference confusion in large programs.
Online Easytrieve runs under the environment your installation configures—terminal access, security, and runtime libraries must be available to the online executor, not only batch STEPLIB in overnight JCL. PARM options affecting debugging may differ between test terminals and production sessions. ABEND analysis still applies: DEBUG STATE and FLOW help diagnose interactive failures when enabled for test users.
Mainframe shops also use CICS, IMS DC, or web front ends. Easytrieve SCREEN targets environments supported in Broadcom documentation for your release. Teams choosing SCREEN often already standardize on Easytrieve for batch and want one language for inquiry. Teams deep in CICS may call batch Easytrieve modules instead of SCREEN. Neither choice removes the need to understand Activity structure—only which activity type owns the UX.
A JOB activity is a factory machine that reads every box on a conveyor belt. A SCREEN activity is a help desk window. A person walks up, types a question, and you show an answer on the glass. Sometimes you still press a button that starts the factory machine to print a report— that is EXECUTE. The Library section still lists what is in the boxes even when you talk through the window instead of the conveyor.
1. SCREEN activities are used for:
2. A SCREEN activity can:
3. Screen procedures appear:
4. Compared to JOB activities, SCREEN activities:
5. Batch report beginners should know SCREEN because: