Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Regarding Calls In PL/I

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
nal_satish

New User


Joined: 20 Jun 2005
Posts: 25
Location: Hyderabad

PostPosted: Tue Jul 19, 2005 9:38 am    Post subject: Regarding Calls In PL/I
Reply with quote

icon_exclaim.gif Can any One Explain Regarding the Calls In PL/ I

Is Calls in PL/I Similar to calls in COBOL,

What is Difference between Static Call and Dynamic call in PL/I and How can we Differentiate it ?

Thanks & Regards,
Satish.
Back to top
View user's profile Send private message
References
PostPosted: Tue Jul 19, 2005 9:38 am    Post subject: Re: Regarding Calls In PL/I Reply with quote

Sridevi_C

Active User


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

PostPosted: Thu Sep 22, 2005 7:12 pm    Post subject:
Reply with quote

Hi,
"CALL" concept is same for both PL/I and COBOL. Like in COBOL, PL/I has static and dynamic call. Static call is directly calling by giving the subroutine name or entry name.
EX:-
M: PROC OPTIONS(MAIN);
DCL A,B FIXED DEC(5,2);
CALL SUB(A,B);
PUT LIST (A,B);
SUB: PROC (X,Y);
DCL X,Y FIXED DEC(5,2);
Y=X+100;
END SUB;
END M;
In Dynamic call, a variable is used in CALL and in run time , the name of the subroutine is given as input.
EX:-
M: PROC OPTIONS(MAIN);
DCL A,B FIXED DEC(5,2);
DCL EV ENTRY VARIABLE, SUB1 ENTRY, SUB2 ENTRY;
GET LIST(EV);
CALL EV(A,B);
PUT LIST (A,B);
END M;
SUB1: PROC (X,Y);
DCL X,Y FIXED DEC(5,2);
Y=X+100;
END SUB1;
SUB2: PROC (X1,Y1);
DCL X1,Y1 FIXED DEC(5,2);
Y1=X1-100;
END SUB2;

Do correct me for any mistake(s).
Thanks!
Sridevi
Back to top
View user's profile Send private message
nal_satish

New User


Joined: 20 Jun 2005
Posts: 25
Location: Hyderabad

PostPosted: Thu Sep 22, 2005 7:50 pm    Post subject: Re: Regarding Calls In PL/I
Reply with quote

Hi Sridevi ,

Thanks for the Info.

For ur Reply..

Thanks& Regards,
Satish.N
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1