View previous topic :: View next topic
|
Author |
Message |
jyothi_priya
New User
Joined: 09 Jan 2004 Posts: 10
|
|
|
|
What is EJECT statement in COBOL? How do we use it?
Thanks,
JP |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi,
EJECT is a compiler directing stmt. It is used to skip the source code listing to a new page. It does not become part of the pgm and has no function within the pgm itself. |
|
Back to top |
|
|
jyothi_priya
New User
Joined: 09 Jan 2004 Posts: 10
|
|
|
|
Hi Jack,
Thanks for the reply... Please clarify me whether I can use this statement any where (between division names, middle of pragraphs... etc) in the COBOL source code as it has nothing to do with the program.
Thanks,
JP |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Yes, you can, as you can use SKIP n, where n=1,2, or 3 to insert blank lines in the listing.
You can also use the TITLE 'xxx' stmt, where xxx are any chars of any length (to position 133 on the line, I think) to print a personalized title at the top of each page in the compiler listing. |
|
Back to top |
|
|
|