GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 105 of 162    Print  
What is Linkage Section? Can we use this concept when there's no called program?

  
Total Answers and Comments: 3 Last Update: May 25, 2007     Asked by: Suganj 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 28, 2007 10:38:38   #1  
kaHackett        

RE: What is Linkage Section? Can we use this concept w...
The linkage section is a way to obtain address to storage areas outside your program. Typically we think the data passed by a main/calling program. But the Linkage Section can also be used to access PARM data from JCL or in CICS/DB2 to access system information. (Keeping in mind these programs are really subprograms to CICS and /or DB2). Finally you could be passed an address by another routine (i.e. a called C or C++ function) and then use COBOL's SET POINTER to reference the storage at the passed address.
 
Is this answer useful? Yes | No
April 29, 2007 11:30:39   #2  
Suganj Member Since: February 2007   Contribution: 13    

RE: What is Linkage Section? Can we use this concept w...
Hi
Thanx for your answer. but i am little bit confused. Actually linkage section is nothing but when we use same variables in both the called and calling program.Is it right? If it right tell me can i use this concept without any sub program or called program? pls help me out......

 
Is this answer useful? Yes | No
May 25, 2007 07:43:36   #3  
Rajni        

RE: What is Linkage Section? Can we use this concept w...
How can you use the concept of Linkage section in the manner you have specified.. Where do you intend to populate these values from and where do you intend to send the values back? It is not possible in the manner you are expecting. Linkage section is designed for passing values from different sources it cannot be within the same source.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape