What is EJECT verb in COBOL?
In our project, i have seen this verb in old programs. Not sure what it will do.
EJECT Verb in COBOL
Moderators: dbzTHEdinosauer, Moderator Group
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
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.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
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.
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.
Natarajan
Chennai
Chennai
-
- Member
- Posts: 4
- Joined: Tue Feb 24, 2009 3:54 pm
- Location: Pune
-
- Member
- Posts: 8
- Joined: Wed Apr 01, 2009 11:25 am
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page