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.

Showing Answers 1 - 19 of 19 Answers

Azahar

  • Dec 14th, 2005
 

This section allows the us to pass values to the program thru JCL.Eg:Dates for processing the data in the program.

Anish

  • Jun 2nd, 2006
 

No you can pass values from JCL using PARM

Example

EXEC PGM=PROG1,PARM='1234'

mdixonga

  • May 29th, 2007
 

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 ??

  Was this answer useful?  Yes

RiddhiKavinithi

  • Aug 14th, 2007
 

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.

  Was this answer useful?  Yes

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.

  Was this answer useful?  Yes

vjjammi

  • Aug 7th, 2010
 

The Data that the sub program is going to receive from the Main program is declared as part of the linkage section in the sub program. Hence, the identifiers in the Linkage section are used when being called by a main program.

It is used to pass data from one program to another program or when we pass data from JCL thru parm perameter to the program, we should use lenkage section in the program to retrieve the data.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions