Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are differences between Static Call and Dynamic Call?

Answer Posted / sivakumar sekhrannair

If a program is called statically then its load module is
combined with mainprograms load module.
In dynamically called program the load module is
independent of the main program's load module.

Why it's happening?
The answer is
In statically called program the program name is given
inside the procedure division as a value not a variable.
The value given inside the procedure division will be
resolved and changed to load module language during
compilation.

But for dynamically called program, the program name is
given as a variable. The value passed to the variable
through file or through working storage section is resloved
only during runtime.
So when we compile the dynamically called subprogram
1)First we compile the subprogram that creates its own load
module.
2)then we compile the main program. During main program
compilation it subrogram name will be taken as a value of a
variable. so the subprogram load module will not be
combined with the main program

3) when we run the main program(which calls the dynmically
called subprogram) the main program treates the subprogram
name as a value and the subprogram is called now.


if anyone have any corrections please let me know in
shivanskn@yahoo.co.in

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of SDLC u followed? Why?

1961


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2534


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2227


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1106


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2415


how do you reference the fixed unblock file formats from cobol programs

1176


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1453


Why did you choose to work with ibm mainframe cobol programming?

1036


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2408


Write a program to enter and display the names of students in a class using the occurs clause.

1156


Write the code to count the sum of n natural numbers.

1145


Mention the guidelines to write a structured cobol program?

1029


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

1061


What is the utilization of copybook in cobol?

1117


What is an in line perform? When would you use it? Anything else you wish to say about it.

1021