Thread: Testing

How do you unit test an Easytrieve program?

Started by Priya • user3 replies99 viewsLast activity 3 weeks ago
Post #1
0 votes
Priya
Reputation
56
Posts: 17
Joined: Aug 17, 2025, 2:03 PM
Posted: Jul 21, 2026, 11:32 AM

COBOL side we at least have small input files and expected outputs checked in. Easytrieve jobs here get "run in test and eyeball the report."

Anyone doing better than that?

Post #2
1 votes
Lisa
Reputation
96
Posts: 17
Joined: Jun 20, 2025, 1:40 PM
Posted: Jul 21, 2026, 2:32 PM

Same idea as COBOL. Tiny fixed input PDS members, expected SYSOUT and output file checked in, compare with SUPERC or ISRSUPC after the run.

Reports are annoying because dates and page headers move. We MASK those lines out of the compare.

Post #3
0 votes
James
Reputation
524
Posts: 30
Joined: May 2, 2024, 8:00 AM
Posted: Jul 22, 2026, 1:32 PM

Same pattern here. One gotcha: Easytrieve FILE STATISTICS lines change every run. Exclude those from the compare list or your diffs are always noisy.

You must be signed in to reply to this thread