Thread: Abends and Error Codes

File status 39 - program fine or JCL wrong?

Started by Jen • user3 replies177 viewsLast activity 4 weeks ago
Post #1
0 votes
Jen
Reputation
287
Posts: 8
Joined: Sep 3, 2024, 11:02 AM
Posted: Jun 13, 2026, 11:38 AM

Program abends on OPEN with file status 39. COBOL FD says LRECL 200. JCL DD looks right to me. Senior dev says check JCL first on status codes.

What is the fastest way to prove whether this is a JCL mismatch versus something in the SELECT?

Post #2
0 votes
Bill
Reputation
221
Posts: 13
Joined: Aug 28, 2024, 7:08 AM
Posted: Jun 13, 2026, 12:38 PM

LISTDSI or ISPF browse on the actual data set for LRECL and RECFM. Nine times out of ten the JCL DCB does not match the catalog.

Post #3
0 votes
Jen
Reputation
287
Posts: 8
Joined: Sep 3, 2024, 11:02 AM
Posted: Jun 13, 2026, 2:38 PM

Catalog said 250. JCL had 200. FD was 200. Fixed the DCB in JCL. Running.

You must be signed in to reply to this thread