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
 
ENTRY statement

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

New User


Joined: 15 Mar 2005
Posts: 4
Location: Chennai

PostPosted: Sat Mar 19, 2005 11:19 am    Post subject: ENTRY statement
Reply with quote

Hi friends,
Plz answer for the below query.

Does the ENTRY statement used in sub-programs only.
Please explain with example where this ENTRY statement is used

-Sameer
09443605966
Back to top
View user's profile Send private message

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sun Mar 20, 2005 2:09 am    Post subject:
Reply with quote

Quote:
Does the ENTRY statement used in sub-programs only.


The question is wrong. As for as I know, you cannot use ENTRY statement in subprograms. You can use only in main program.

Please explain with example where this ENTRY statement is used

Code:
ENTRY PGM2 USING X, Y.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Mar 21, 2005 2:23 am    Post subject:
Reply with quote

Hi Sameer,

The ENTRY stmt was designed primarily for specifying alternate entry pts to subpgms. The primary entry pt is supplied automatically by the compiler.

I've never tried to execute a pgm from the JCL EXEC stmt using an alternate EP. It should be easy enough to test. But remember, that subpgms usually process data passed from the CALLer. This you can't simulate from the JCL. (You can, really, but it's messy.)
Back to top
View user's profile Send private message
ensameer

New User


Joined: 15 Mar 2005
Posts: 4
Location: Chennai

PostPosted: Mon Mar 21, 2005 9:52 am    Post subject: Re: ENTRY statement
Reply with quote

Hi,
Thanks priya and mmwife for ur reply.

So, is this ENTRY statement used to enter into some entry point of a subprogram ? Is this same as PERFORM statement which is used to enter into a para of same program.

-Sameer
09443605966
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 WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm

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