What is the difference between Working-storage Section & Linkage Section?

Questions by sanjit_das   answers by sanjit_das

Showing Answers 1 - 12 of 12 Answers

mamata

  • Apr 3rd, 2006
 

Working storage section is the part of data divsion where you declare your variables you are using in your program.

But Linkage section is the part of data division which is used to 1) Receive Parameters passed from other Cobol program (Calling program).

2) It's used to accept the Paramaters passed from the JCL to the COBOL program.

  Was this answer useful?  Yes

kapilvharande

  • May 30th, 2006
 

In working storage section we declare variables which is used in the same program.

Linkage section is used to pass the variables from one program to another or we can pass variables from jcl to cobol program.Mostly it is used for subprograms which is called by main program.  

  Was this answer useful?  Yes

ATUL BANKE

  • Jun 9th, 2006
 

(1) WORKING STORAGE SECTION is used to declare internal data items that is used in the same program.

(2) LINKAGE SECTION is used to declare data items that we want to share with other program.

  Was this answer useful?  Yes

Asterix

  • Mar 3rd, 2010
 

Not exactly:

The linkage section is used to pass data from an other environment that's correct

But the working storage may share data with other programms with the "EXTERNAL" Clause. In this case the description must be the same in all programs (calling and called) and changing the value in one of them, affects value for all of them

  Was this answer useful?  Yes

There is no difference between Working and Linkage both are in Data Division.

Working-Storage for declaring the variables in main program.

Linkage section is used for declaring the variables for Sub program. Parm parameters also can be declared in Linkage section only.

  Was this answer useful?  Yes

Jo Ann

  • Aug 4th, 2020
 

there is much difference between Linkage and working-storage on how you define variables. linkage section has 01 level only. Linkage is to take in data from other programs or stored procedures. Working-storage is usually a copybook layout brought into working-storage and you do have other housekeeping things like Program-name and WS- variables.

  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