Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is EJECT statement in COBOL

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

New User


Joined: 09 Jan 2004
Posts: 10

PostPosted: Mon Nov 08, 2004 10:00 am    Post subject: What is EJECT statement in COBOL
Reply with quote

What is EJECT statement in COBOL? How do we use it?


Thanks,
JP
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Nov 08, 2004 10:33 am    Post subject:
Reply with quote

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
View user's profile Send private message
jyothi_priya

New User


Joined: 09 Jan 2004
Posts: 10

PostPosted: Mon Nov 08, 2004 12:21 pm    Post subject: EJECT
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Nov 08, 2004 8:59 pm    Post subject:
Reply with quote

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
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
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us