EJECT command in COBOL

3 posts / 0 new
Last post
Anonymous
EJECT command in COBOL

 

 

 

 

EJECT command in COBOL

 

In my shop, I see "EJECT" command used in many places in the COBOL program, but this does not seem to be an executable command.

What is the purpose of using EJECT command in COBOL?

 

 

"; ; ; ;
Offline
Joined: 07/25/2010 - 17:26
Refer COBOL manual

 

 

Eject statement is used for printing purpose of COBOL source code. It works as a page skip command for printing.

 

Refer the link:- 

http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.langref.doc/evfeb4ls83.htm

Offline
Joined: 07/07/2011 - 19:59
Eject and skip verbs.
Eject and skip verbs in COBOL only have a purpose when creating hard copies of the program compile listings. Since most of us Cobol programmers are considerate of the removal of the rain forests to create paper we no longer create hard copis of the program compile listings. I personaly regard these statements as clutter and remove them as soon as i edit a COBOL program. i have facilitated this action by creating an edit macro to remove them as soon as i edit a program.
Log in or register to post comments
Sponsored Listing