What is linkage section? Is it possible to use this concept when there's no called program? Is it used for the ordinary cobol pragram with out any called program? can anyone help me out from this.......
Printable View
What is linkage section? Is it possible to use this concept when there's no called program? Is it used for the ordinary cobol pragram with out any called program? can anyone help me out from this.......
When we use PARM in JCL, we need to use Linkage section in cobol pgm
savvy:)
I'll expand on that.
LINKAGE is used to get information into and out of a program.
In the case where JCL calls a COBOL program with a PARM= on the EXEC card, it's the linkage section that holds the passed information.
When a COBOL program calls another COBOL or Assembler program, LINKAGE performs the same function. It also has the benefit of being able to pass information from the called program back into the original program. Commonly this is a flag that reports on the success or failure in the called program.
kk