View previous topic :: View next topic
|
Author |
Message |
bharathyyy
New User
Joined: 13 Jun 2005 Posts: 6
|
|
|
|
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 |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
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 |
|
|
|