Post #1
0 votes
Alex
Reputation8
Posts: 35
Joined: 06/15/2026, 09:20 AM
Posted: 08/06/2026, 09: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