Post #1
0 votes
Alex
Reputation
8
Posts: 35
Joined: Jun 15, 2026, 9:20 AM
Posted: Aug 6, 2026, 9:18 AM
IDENTIFICATION, ENVIRONMENT, DATA, PROCEDURE. Do I always need all four? What goes in each?
IDENTIFICATION, ENVIRONMENT, DATA, PROCEDURE. Do I always need all four? What goes in each?
IDENTIFICATION = program name.
ENVIRONMENT = files / ASSIGN (and some config).
DATA = your fields, FD, copybooks.
PROCEDURE = the actual code.
You will see all four in most batch programs. Some short programs look sparse in ENVIRONMENT if they barely touch files.
PROGRAM-ID under IDENTIFICATION is the one beginners forget, then the compile complains immediately.
You must be signed in to reply to this thread