GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 8 of 162    Print  
What is the linkage section?
The linkage section is part of a called program that 'links' or maps to data items in the calling program's working storage. It is the part of the called program where these share items are defined.


  
Total Answers and Comments: 7 Last Update: November 13, 2009   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Azahar
 
This section allows the us to pass values to the program thru JCL.Eg:Dates for processing the data in the program.

Above answer was rated as good by the following members:
anilcvs
December 14, 2005 07:08:52   #1  
Azahar        

RE: What is the linkage section?
This section allows the us to pass values to the program thru JCL.Eg:Dates for processing the data in the program.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 19, 2006 15:44:24   #2  
DavidStagg Member Since: March 2006   Contribution: 5    

RE: What is the linkage section?
The comment of Dec 14 is NOT correct. To pull in parameters from the JCL you would use the accept verb.
 
Is this answer useful? Yes | No
June 02, 2006 15:39:56   #3  
Anish        

RE: What is the linkage section?

No you can pass values from JCL using PARM

Example

EXEC PGM PROG1 PARM '1234'


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 03, 2007 09:32:38   #4  
Suganj Member Since: February 2007   Contribution: 13    

RE: What is the linkage section?
When a variable is shared by both the called program and calling program we say this as linkage section.
 
Is this answer useful? Yes | No
May 29, 2007 22:58:21   #5  
mdixonga        

RE: What is the linkage section?

I have always moved linkage section variables to working storage variables because I had been told that using the linkage variables in the Procedure Division would cause process time issues. Could this be true or is this an urban legend ??


 
Is this answer useful? Yes | No
August 14, 2007 03:56:39   #6  
RiddhiKavinithi        

RE: What is the linkage section?
Each parameter to be accepted or passed by a procedure must be declared in the LINKAGE SECTION.

This section lists buffers for data are common to calling and called programs. Calling parameters are set in the Linkage Section of the called programs and those parameters that the calling program needs to read after a call are set on the Linkage Section of the calling program.

Note that the Linkage Section of a calling program and its called programs are not in general the same.


 
Is this answer useful? Yes | No
November 13, 2009 01:47:57   #7  
swapnadeep.ganguly Member Since: June 2008   Contribution: 1    

RE: What is the linkage section?
This section allows a COBOL program to receive values from JCL.

Also if you are calling a sub-program and you require some values to be passed between them then this is the section that should be used.

Thus in a short this section allows a value to be passed into a COBOL program from JCL as well as a linked program. Thus the name Linkage Section.

 
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