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
 

 

What is the use of entry statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
sumanthmain

New User


Joined: 22 Aug 2005
Posts: 14

PostPosted: Tue Nov 01, 2005 5:10 am    Post subject: What is the use of entry statement
Reply with quote

Anybody help me about entry statement.

what is the use of entry statement ??
cheers
sumanth
Back to top
View user's profile Send private message

Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Wed Nov 02, 2005 4:54 am    Post subject:
Reply with quote

Hi,
Please go through the manual before posting your query. Check this link.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/IBM3LR20/6.10.3?DT=20031030085717#HDRWQ161
I am sure you will find more than what you are looking for.
Regards,
Sridevi.
Back to top
View user's profile Send private message
hsourabh

New User


Joined: 24 May 2005
Posts: 12
Location: Z?rich

PostPosted: Thu Nov 17, 2005 9:39 pm    Post subject: Re: What is the use of entry statement
Reply with quote

Hi,

An entry statement is used to declare an externally called module inside a
PL/1 program.

DCL DONOTHING ENTRY;
or(with arguments)
DCL DOSOMETHING ENTRY(var1) returns(var2);

et al.

It must be noted that any module declared as an entry has to have its loadlib link edited in the JCL step.

Regards,
Sourabh
Back to top
View user's profile Send private message
nutakkimurali

New User


Joined: 15 Nov 2005
Posts: 22

PostPosted: Tue Nov 22, 2005 8:45 pm    Post subject: Re: What is the use of entry statement
Reply with quote

Another example or situation where we use ENTRY
Entry Statement can be used something like when you want to have a secondry Entry in a given procedure:
Example:

PROC1: Proc main
dec i bin fixed(15,0) static;
dec j bin fixed(15,0) Static INIT '5';
dec k bin fixed(15,0) Static INIT '6';
I = J + K;
return;
ENTRY : ENTRY1

PUT SKIPLIST (I);

END PROC1;

In the above senario you can enter the procedure at a point other than the begining of it.
When the procedure is enterted at ENTRY1 ,it still has the same environment as if it had been entered at PROC1.(i.e all the variables or names declared in PROC1 are known in ENTRY1 too.
Here the RETURN statement is necessary to return control back to the point of invocation,If not then it would bypass the ENTRY and continue to End statement

Muralee
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 -> PL/I & Assembler 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