Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH ..

Answer / srinivas.d

because in first two bytes it stores length.If u don't give
s9(4),then there are chances of two bytes data truncation.
Linkage section is used in main program when parm fiels is
used in jcl or in sub program when main program calls sub
program.

Is This Answer Correct ?    20 Yes 4 No

What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH ..

Answer / kavya

Linkage section is one of the section of Data
division.Linkage section is used to access external data.

With respect to length above ans is right...

Is This Answer Correct ?    8 Yes 3 No

What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH ..

Answer / rahul dev

Q) May be the question is why code lenght in COMP only not
in COMP-3 or DISPLAY type!! If somebody know plz asnwer

A) The length of linkage is stored as Binary, hence COMP.
We cannot use COMP-3 because COMP-3 stores in Packed
decimal & not in Binary.

Is This Answer Correct ?    8 Yes 3 No

What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH ..

Answer / i go crazy

S9(4) COMP uses 2 bytes. where as S9(4) COMP-3 uses 3 bytes. As COMP needs less storage at word boundaries, we use COMP.

Is This Answer Correct ?    2 Yes 2 No

What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH ..

Answer / 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

What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH ..

Answer / viks

May be the question is why code lenght in COMP only not in
COMP-3 or DISPLAY type!! If somebody know plz asnwer

Is This Answer Correct ?    0 Yes 3 No

What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH ..

Answer / ramesh

could any one give better explaination.
for ex: parm='12345' in jcl
how to declare linkage section variable.
in linkage section.
01 parm
05 ls-var pic 9(05).
(or)
01 parm
05 ls-len pic s9(04) comp.
05 ls-var pic 9(05).
please explain why we hav to declare ls-len.

Is This Answer Correct ?    0 Yes 3 No

What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH ..

Answer / harish

hi,

above answers r absolutely right..........

Is This Answer Correct ?    5 Yes 9 No

Post New Answer

More COBOL Interview Questions

2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

0 Answers  


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

0 Answers  


I try to use some column names in my cobol progorm but these column not in db2 table ..when do i get error ..while bind time or runtime?

2 Answers  


Write the code implementing the perform … varying.

0 Answers  


What is the difference between CONTINUE & NEXT SENTENCE ?

2 Answers  


HELLO FRIENDS, THIS IS JANARDHAN.GADIRAJU, I FACED ONE INTERESTING QUESTION IN COBOL, THAT IS WHAT ARE THE VALUES WE CAN SEE IN HIGHVALUES AND LOWVALUES, CAN U PLEASE GIVE ME THE ANSWER

7 Answers   Patni,


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

0 Answers  


waht is inspect verb? where it can be in real time?

1 Answers   Patni,


WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH

2 Answers   Cap Gemini,


I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..

2 Answers   EDS,


if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.

2 Answers   UST,


is it possible to pass an SQL query inside a jcl which is inside a cobol program?

5 Answers   CTS,


Categories