Valid and Invalid Word - Cobol words:
Valid Word Invalid Word & Reason
emp-sal -pay ( it starts with a hyphen)
TOTAL MARK (blank space embedded)
There are 2 types of words in the COBOL. The COBOL word can be either a user-defined word or reserved word. The reserved words are used in the COBOL statements and entries for the specific aims by the COBOL compiler.
Some reserved words are shown below:
IF, PERFORM, ADD, SUBTRACT, MULTIPLY, DIVIDE etc.