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

Cobol call question


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Thu Feb 18, 2010 11:18 am
Reply with quote

Hi,

Question: Program 'A' is dynamically linked to 'B'. 'B' is statically linked to 'C'.
One scenario: All programs are non-DB2
Second scenario: All programs have DB2 calls

If we make some changes in 'C' then what all steps are to be followed for both scenarios and why?

Would be great if somebody could provide the answer.

Thanks,
Sharath
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Feb 18, 2010 12:06 pm
Reply with quote

I'm not sure how the DB2 factors in, but 'B' will have to be relinked with the changed 'C'...
Back to top
View user's profile Send private message
lvani

New User


Joined: 26 May 2010
Posts: 3
Location: Chennai

PostPosted: Fri Jul 02, 2010 4:25 pm
Reply with quote

In both cases we need to compile and link-edited B with the changes in C
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jul 02, 2010 4:48 pm
Reply with quote

lvani wrote:
In both cases we need to compile and link-edited B with the changes in C


lvani,

you have it half right. B needs to be relinked to pickup the new C.

now, many shops have 'standard' JCL, which means that just relinking a
module can not be done. but that is a shortfall of the standards.

as the question is posed:
the correct answer is relink B. there is no need to recompile B,
in either case.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top