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


Please Help Members By Posting Answers For Below Questions

Have you used comp and comp-3 in your project? And how?

1981


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1676


What is the difference between binary search and sequential search?

609


What kind of error is trapped by on size error option?

714


What is the compute verb? How is it used?

636






How can you get the ksds file records into your cobol program?

623


Write the code to count the sum of n natural numbers.

681


What are the different data types in cobol?

761


What is a scope terminator give example?

628


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

662


Write down the divisions of cobol program?

638


How do you get the data to code the BMS macro?

1453


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

625


What is the LINKAGE SECTION used in COBOL?

854


Write a program to enter and display the names of students in a class using the occurs clause.

620