Thread: General

How do you get dataset create date from batch COBOL?

Started by Marty • user3 replies153 viewsLast activity 3 weeks ago
Post #1
0 votes
Marty
Reputation
412
Posts: 58
Joined: Aug 12, 2024, 9:14 AM
Posted: Jul 20, 2026, 11:41 AM

Want create date from the catalog for the input file, write it onto the output trailer. Mix of DASD and tape.

Calling ISPF/REXX from batch COBOL feels heavy. IDCAMS LISTCAT from COBOL? Separate IKJEFT01 step?

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

Cheapest: IKJEFT01 / LISTDSI or a CLIST before the COBOL step, pass the date in a parm file.

IDCAMS LISTCAT callable from COBOL works too if you already have that pattern in the shop. I would not drag ISPF services into batch for one date.

Post #3
0 votes
Marty
Reputation
412
Posts: 58
Joined: Aug 12, 2024, 9:14 AM
Posted: Jul 21, 2026, 12:41 PM

Went with a LISTDSI step writing a 1-line date file. COBOL reads it. Fine for now.

You must be signed in to reply to this thread