IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

regarding linking of static call programs.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhee_rb

New User


Joined: 29 Mar 2006
Posts: 34

PostPosted: Tue Apr 04, 2006 7:47 pm
Reply with quote

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
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Apr 04, 2006 8:21 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Finding Assembler programs PL/I & Assembler 5
Search our Forums:

Back to Top