Page 1 of 1

EJECT Verb in COBOL

Posted: Tue May 19, 2009 11:27 am
by Vamsi99
What is EJECT verb in COBOL?
In our project, i have seen this verb in old programs. Not sure what it will do.

Posted: Tue May 19, 2009 2:12 pm
by dbzTHEdinosauer
here is a link for all the cobol documentation in the IBM library server. Suggest you pick the manual that fits your site's COBOL.

Posted: Tue May 19, 2009 5:59 pm
by Natarajan
The EJECT statement has no effect on the compilation of the source unit itself.
EJECT is compiler directing statement in COBOL.

The EJECT statement specifies that the next source statement is to be printed at the top of the next page.
When compiler prints the listings of COBOL source code all the lines after EJECT will be next new page. EJECT wont get printed in listing.

SKIP is another similar kind of statement - SKIP n
It will skip n lines before continuing to print.

Syntax rules -
EJECT should be only one statement on that line
can be termined with period.
can be written in area A or area B.

Posted: Tue Jun 16, 2009 4:49 pm
by Shashank Gite
Absolutely correct I agree with you Natarajan.

Posted: Mon Jul 13, 2009 1:56 pm
by madhureddygs
This is useful information for me also. Thanks everyone. :D

Posted: Fri Aug 28, 2009 11:33 am
by prasannag
This gave me solution for longunanswered question...Thanks to all...

Topic deleted by Admin

Posted: Mon Feb 01, 2016 10:17 pm
by academyindia4
<< Content deleted By Admin >>