Thread: General

Empty Easytrieve input - A010 vs S001

Started by Kayla • user3 replies202 viewsLast activity 2 weeks ago
Post #1
0 votes
Kayla
Reputation
72
Posts: 10
Joined: Sep 11, 2025, 8:22 AM
Posted: Jul 26, 2026, 9:41 AM

Job should exit clean when the extract file is empty. JOB INPUT NULL / GET / IF EOF STOP.

Sometimes A010. Sometimes S001. Same JCL. What is going on?

Post #2
1 votes
Bill
Reputation
221
Posts: 41
Joined: Aug 28, 2024, 7:08 AM
Posted: Jul 26, 2026, 11:41 AM

Easytrieve needs a real EOF. File that was opened for output and closed is fine. "Empty" dataset that was only allocated in 3.2 with no EOF marker is not. That is your S001 flavor.

Create empties with IEBGENER or REPRO of zero records so the EOF is valid. Then GET + IF EOF works.

Post #3
0 votes
Kayla
Reputation
72
Posts: 10
Joined: Sep 11, 2025, 8:22 AM
Posted: Jul 27, 2026, 2:41 PM

Upstream job was DISP=NEW without writing anything. Fixed the producer. Consumer is happy now.

You must be signed in to reply to this thread