What is the Linkage section? What is the Use and Why the
parm length use alway "PARM-LENGTH PIC S9(4) or PIC S9
(4) COMP." any reason?.Please let me know any one...
Cheers,Prasad
Answer Posted / siri
LINKAGE SECTION:- IT IS SECTION OF THE DATA DIVISION..IT IS USED TO LINK BETWEEN THE TWO SUB PROGRAMS...PASS THE VALUE FROM JCL BY PARM PARAMETER...
DECLARE THE PARM PARAMETER IN COBOL PROGRRAM
LINKAGE SECTION.
01 PARM-FIELD.
05 PARM-LENGTH PIC S9(4) COMP.
05 PARM-VALUE PIC X(6)
PROCEDURE DIVISION USING PARM-FIELD.
THE PROGRAM CAN RECEIVE THEM USING LINKAGE SECTION.THE LINKAGE SECTION MUST BE CODED WITH HALF WORD BINARY FIELD AS FIRST FIELD.THIS IS POPULATED IS POPULATED WITH LENGTH OF THE PARM PASSED FROM THE JCL.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you get the data to code the BMS macro?
Explain what you understand by passing by value.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
For rewrite, why is it mandatory that file needs to be opened?
how do you reference the rrds file formats from cobol programs
What rules are to be followed while using the corresponding options?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Which division and paragraphs are mandatory for a COBOL program?
Give some examples of command terminators?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are the cobol coding sheets?
What are the different rules of SORT operation?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between PIC 9.99 and 9v99 in COBOL?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?