Category: COBOL

Why do we use EXIT in COBOL

EXIT in COBOL does nothing. If we use EXIT statement in any paragraph, that should be the only statement in that paragraph. It is usually used to set boundaries to paragraph.

More

Explain 77 Level in COBOL

77 Level is Elementary level item. 77 Level Cannot be subdivision of other items (cannot be qualified), nor can they be subdivided themselves.

More

Continue vs Next Sentence

Continue transfers the control to next statement after the scope terminator. Next sentence transfers the control to statement after the first period encountered.

More

Creating V00 version in GDG

Using +1 creates a new generation, how to create a new V00 version in GDG? You will have to manually create a file G003V01 for this, but note that creation of V1 deletes V00...

More

Explain GDG versions

What is the reason for v00 in a G000V00 GDG? This is the version number and we can have upto 99 versions for the same generation. Say I have 5 generations of a file,...

More

IS NUMERIC clause in COBOL

IS NUMERIC Clause is used to check if any item is numeric or not. It returns TRUE when the item against which it is used contains only numbers(0 to 9). The item can be...

More

COBOL format

COBOL programs are divided into 4 divisions. Identification Division. Environment Division. Data Division. Procedure Division. IDENTIFICATION DIVISION. PROGRAM-ID. program name. [AUTHOR.[COMMENT-ENTRY]…] [INSTALLATION.[ENTRY]…] [DATE-WRITTEN.[ENTRY]…] [DATE-COMPILED.[ENTRY]…] [SECURITY.[COMMENT-ENTRY]…] Identification Division does not contain any section. ENVIRONMENT DIVISION....

More