Thread: JCL and JCL Utilities

Referencing prior step output DSN without hardcoding

Started by Lisa • user3 replies114 viewsLast activity 1 month ago
Post #1
0 votes
Lisa
Reputation
96
Posts: 17
Joined: Jun 20, 2025, 1:40 PM
Posted: Jul 13, 2026, 8:21 AM

Step 1 creates &&TEMP. Step 3 needs to read what step 2 wrote to a cataloged dataset whose name includes the job date.

Is referback (*.STEP2.DDNAME) still the clean approach, or do people pass names through SET symbols now?

Post #2
0 votes
Jen
Reputation
287
Posts: 34
Joined: Sep 3, 2024, 11:02 AM
Posted: Jul 13, 2026, 10:21 AM

Referback for true temp passes. For cataloged dated names we SET a symbol at the top (or resolve in a prior REXX/IDCAMS step) and reuse &DSN everywhere. Easier to restart.

Post #3
1 votes
Bill
Reputation
221
Posts: 41
Joined: Aug 28, 2024, 7:08 AM
Posted: Jul 14, 2026, 12:21 PM

Agree. Referback across too many steps gets brittle when someone inserts a step in the middle.

You must be signed in to reply to this thread