Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 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
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Automation of data entry using Rexx i... zingy.rajeev CLIST & REXX 4 Mon Aug 22, 2016 4:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us