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
Have you used comp and comp-3 in your project? And how?
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.
What is the difference between binary search and sequential search?
What kind of error is trapped by on size error option?
What is the compute verb? How is it used?
How can you get the ksds file records into your cobol program?
Write the code to count the sum of n natural numbers.
What are the different data types in cobol?
What is a scope terminator give example?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Write down the divisions of cobol program?
How do you get the data to code the BMS macro?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is the LINKAGE SECTION used in COBOL?
Write a program to enter and display the names of students in a class using the occurs clause.