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