Thread: DFSORT and ICETOOL

INCLUDE COND with packed decimal - keep getting ICE messages

Started by Bill • user3 replies98 viewsLast activity 4 weeks ago
Post #1
0 votes
Bill
Reputation
221
Posts: 41
Joined: Aug 28, 2024, 7:08 AM
Posted: Jul 18, 2026, 9:38 AM

Need to INCLUDE rows where a COMP-3 amount > 0. Format looks right in the book but DFSORT keeps complaining about the field.

Anyone have a minimal working INCLUDE for PD that I can stare at? File is FB LRECL=200, amount at 45 for 5 bytes.

Post #2
0 votes
Jen
Reputation
287
Posts: 34
Joined: Sep 3, 2024, 11:02 AM
Posted: Jul 18, 2026, 12:38 PM

Something like:

INCLUDE COND=(45,5,PD,GT,+0)

If that fails, dump a few records in hex and confirm the PD really starts at 45. Off-by-one in the copybook is common.

Post #3
1 votes
Bill
Reputation
221
Posts: 41
Joined: Aug 28, 2024, 7:08 AM
Posted: Jul 18, 2026, 5:38 PM

It was starting at 46. Copybook had an extra filler I forgot. INCLUDE works.

You must be signed in to reply to this thread