Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
what is EJECT in a cobol prg

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
mohanraz

New User


Joined: 07 Mar 2005
Posts: 1

PostPosted: Mon Mar 07, 2005 12:44 pm    Post subject:
Reply with quote

What is EJECT doing in a cobol prg.
Back to top
View user's profile Send private message
References
Prandip

Active User


Joined: 04 Mar 2005
Posts: 87
Location: In my tiny cubicle ...

PostPosted: Mon Mar 07, 2005 11:46 pm    Post subject: Re: what is EJECT in a cobol prg
Reply with quote

What do the manuals say?

Hint: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR00/8.1.6?DT=20011206182158
Back to top
View user's profile Send private message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 200
Location: Keane India Ltd., Hyderabad

PostPosted: Tue Mar 08, 2005 10:58 am    Post subject:
Reply with quote

Hi Mohanraz,

EJECT statement will EJECT one blank paper before printing.

Bye,
Reddy.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1526

PostPosted: Sun Mar 13, 2005 7:34 am    Post subject:
Reply with quote

Hi Mo,

EJECT is a compiler directing stmt. That means it doesn't find its way in to the pgm you're compiling.

It directs the compiler to print the next line of the compiler printout to the top of the next page.

Take the time to peruse the manual periodically. You'll learn a lot more.
Back to top
View user's profile Send private message
aabhas

New User


Joined: 22 Mar 2005
Posts: 2

PostPosted: Wed Mar 23, 2005 1:27 pm    Post subject:
Reply with quote

The EJECT statement is a compiler-directing statement, provided as an
IBM extension, which causes the compiler to perform a page eject
operation on the source listing. The next source statement line (i.e.,
the line following the EJECT statement) is then printed at the top of
the next page.

Format
------
EJECT

EJECT may appear in either Area A or Area B but must be the only
statement on the line. It may be followed by an optional period.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1