Thread: COBOL

SELECT / ASSIGN ddname - how does that connect to JCL?

Started by Alex • user3 replies236 viewsLast activity 2 weeks ago
Post #1
0 votes
Alex
Reputation
8
Posts: 35
Joined: Jun 15, 2026, 9:20 AM
Posted: Jul 29, 2026, 1:38 PM

Program has:
SELECT INFILE ASSIGN TO INPUT01.

What is INPUT01? Is that the dataset name?

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

INPUT01 is the DD name in your JCL, not the DSN.

//INPUT01 DD DSN=MY.DATA.FILE,DISP=SHR

COBOL talks to INPUT01. JCL points INPUT01 at the real dataset.

Post #3
0 votes
Alex
Reputation
8
Posts: 35
Joined: Jun 15, 2026, 9:20 AM
Posted: Jul 29, 2026, 5:38 PM

That was the missing link. File status 35 makes sense now - my DD name did not match.

You must be signed in to reply to this thread