Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

EJECT verb in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
bharathyyy

New User


Joined: 13 Jun 2005
Posts: 6

PostPosted: Mon Jun 20, 2005 3:47 pm    Post subject: EJECT verb in COBOL
Reply with quote

explain about the EJECT verb ?

whether it will only come with called pgms or it will also come at the end of the main pgms.?

is it differnet from other end verbs (STOP RUN, EXIT PROGRAM & END PGM) ?
Back to top
View user's profile Send private message

subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Mon Jun 20, 2005 3:53 pm    Post subject: Re: EJECT verb ???
Reply with quote

Hi,
Check this
http://ibmmainframes.com/viewtopic.php?t=3581
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jun 21, 2005 8:15 am    Post subject:
Reply with quote

EJECT is one of the compiler directing stmts in COBOL. Another is SKIP n.

When the compiler prints the listing of your source code everthing following the EJECT will start at the top of a new page.

Similarly SKIP n will skip n lines before continuing to print. One line is the default.

They can be used anywhere in the pgm code on a separate line and they are not pprinted in the listing.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Tue Jun 21, 2005 10:35 am    Post subject:
Reply with quote

The EJECT statement specifies that the next source statement is to be
printed at the top of the next page.

The EJECT statement must be the only statement on the line. It can be
written in either Area A or Area B, and can be terminated with a separator period.

The EJECT statement must be embedded in a program source. For example, in the case of batch applications, the EJECT statement must be placed between the CBL (PROCESS) statement and the end of the program (or the END PROGRAM header, if specified).

The EJECT statement has no effect on the compilation of the source program itself.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us