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
 
Regarding Calls In PL/I

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

New User


Joined: 20 Jun 2005
Posts: 26
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

Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
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: 26
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
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 Sending system service calls by AIBTDLI. lind sh IMS DB/DC 1 Wed Mar 16, 2016 6:51 pm
No new posts Scan for Calls to DB2 kctechpro2 IBM Tools 10 Fri Sep 04, 2015 11:31 pm
No new posts Static and Dynamic Calls with DB2 Pro... RahulChaudhari DB2 6 Sun Nov 30, 2014 1:37 am
No new posts IMS Calls Vs DB2 Calls shiitiizz All Other Mainframe Topics 5 Fri Jun 06, 2014 12:20 pm
No new posts IMS calls to database. dilip_bangalore IMS DB/DC 3 Mon Sep 23, 2013 1:17 pm

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