View previous topic :: View next topic
|
Author |
Message |
sudhee_rb
New User
Joined: 29 Mar 2006 Posts: 34
|
|
|
|
Hi 2 all
This is sudheer,
I have a confusion on static linking
how can we link edit called program and calling program?
eg:
calling program : main-prog
called program : sug-program
please give the clarification.
thanks in advance |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
hy sudhee_rb,
make the CALL with a literal not a variable value...
CALL 'sub-program' USING ....
not
SUBPRO PIC X(8) VALUE 'SUBPROG'.
CALL SUBPRO USING....
all clear...? be careful with the cobol option DYNAM/NODYNAM
static: the program needs not to be fetched while run-time it is
included in the lexecutable.
dynamic: the program gets fetched each time it gets called.
with link edit options you can influence this additinally.
martin9 |
|
Back to top |
|
|
|