CharacterDigits (0-9), Alphabets (A-Z), Space (b), Special Characters(+ - * / ( ) = $ ; “ > < . ,)WordOne or more characters- User defined or ReservedClauseOne or more words. It specifies an attribute for an entryStatementOne or more valid words and clausesSentenceOne or more statements terminated by a periodParagraphOne or more sentences.SectionOne or more paragraphs.DivisionOne or more sections or paragraphsProgramMade up of four divisions
Divisions in COBOL.
There are four divisions in a COBOL program and Data division isoptional.1.Identification Division.2.Environment Division.3.Data Division.4.Procedure Division.Identification Division.This is the first division and the program is identified here.ParagraphPROGRAM-ID followed by user-defined name is mandatory. All other paragraphs are optional and used for documentation. The length of user-defined name for IBM COBOL is EIGHT.
PROGRAM-ID. PROGRAM NAME.AUTHOR.COMMENT ENTRY.INSTALLATION.COMMENT ENTRY.DATE-WRITTEN.COMMENT ENTRY.DATE-COMPILED.COMMENT ENTRY.SECURITY.COMMENT ENTRY.Security does not pertain to the operating system security, but theinformation that is passed to the user of the program about thesecurityfeatures of the program.
Only machine dependant division of COBOL program. It suppliesinformationabout the hardware or computer equipment to be used on the program.