What is Static and Dynamic linking ?

Answers were Sorted based on User's Feedback



What is Static and Dynamic linking ?..

Answer / akviswa

Ex for static linking-

Call "PGMNAME"

Dynamic linking-

01 ws-pgmname pic x(8) value "PGMNAME".

Call ws-pgmname

Is This Answer Correct ?    5 Yes 2 No

What is Static and Dynamic linking ?..

Answer / vampire

good example for this is call by refference and call by value


call by refference it is a static linking once subprogram
modified it effects the main program


call by value is dynamic linking modifying the subprogram
wont effect the main program

Is This Answer Correct ?    2 Yes 3 No

What is Static and Dynamic linking ?..

Answer / ms. stanley

If the Subroutine Load is created dynamically when the
program is executed and the load is available for Linking at
run-time is called as Dynamic Linking
When the Subroutine load is separately available for Linking
is called as Static Linking

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More COBOL Interview Questions

is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon

2 Answers   Patni,


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).

8 Answers  


How you can delete a record from a ps file in cobol?

1 Answers  


i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19

2 Answers  


study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level

4 Answers   TCS,






I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.

7 Answers   Amdocs,


I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

3 Answers   IBM,


We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)

1 Answers   Cap Gemini,


I have a occurs for 100 times but it has executed 101 time what could be the reason?

4 Answers  


How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?

3 Answers   Cap Gemini, CTS,


What are VS COBOL 11 special features?

1 Answers  


What is the difference between subscript and index?

1 Answers  


Categories