HI,
If a program eg C1 is called by main program M1 & M2 then. how do we find its linkage length.. ? is there any way to find the linkage length and the length of each variables used in that linkage section. I tried using AMBLIST but didnt get the solution..
HOW TO FIND LINKAGE LENGTH
Moderators: dbzTHEdinosauer, Moderator Group
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
I think you need to read a description of AMBLIST so that you can understand that you may as well have read a food-packaging label. I don't know how you came up with that idea, but it should have been very short-lived.
The answer to your question is 1) it cannot be determined 2) because of 1) we always code so that we know the length.
The answer to your question is 1) it cannot be determined 2) because of 1) we always code so that we know the length.
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
Dhiraj,
the most common practice in most shops is to require that all areas that are used to communicate between programs must be in copy members that are used by both the calling and called programs. This is a tried and true method of ensuring that length in the linkage section of the called program matches the length of the actual storage in the calling program.
The default method of calling programs in COBOL is CALL BY REFERENCE. "BY REFERENCE" means that only the address of the variable is passed to the called program. So all that the called program has available to it is the ADDRESS of the variable. It is imperative that the programmer ensures that the linkage definition of that variable match the definition in the calling program.
There are exceptions to these general guidelines. but deeper understanding is required before venturing in that situation.
the most common practice in most shops is to require that all areas that are used to communicate between programs must be in copy members that are used by both the calling and called programs. This is a tried and true method of ensuring that length in the linkage section of the called program matches the length of the actual storage in the calling program.
The default method of calling programs in COBOL is CALL BY REFERENCE. "BY REFERENCE" means that only the address of the variable is passed to the called program. So all that the called program has available to it is the ADDRESS of the variable. It is imperative that the programmer ensures that the linkage definition of that variable match the definition in the calling program.
There are exceptions to these general guidelines. but deeper understanding is required before venturing in that situation.
Chuck Haatvedt
email --> clastnameatcharterdotnet
(replace lastname, at, dot with appropriate
characters)
email --> clastnameatcharterdotnet
(replace lastname, at, dot with appropriate
characters)
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page