I am sending values a and b with pic x(10) and pic x(10) by
using call statement.
In linkage section, I am receiving values with pic x(10)
and pic x(11).
Will my program fail? will it be compile error or run time
abend?

Answers were Sorted based on User's Feedback



I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage sect..

Answer / vs kumar

NOTHING WILL HAPPEN. PROGRAM WILL EXECUTE SUCCESSFULLY.

Is This Answer Correct ?    6 Yes 2 No

I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage sect..

Answer / meera

Program will execute successfully. But truncation will
occur. If the data is numeric then MSB will truncate. If the
data type is Alphabet then Right most alphabet get truncated

Is This Answer Correct ?    2 Yes 2 No

I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage sect..

Answer / bharath

No error will occur. Data will terminate to 10 Fields.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More COBOL Interview Questions

whats the disadvantage of search all over search?

4 Answers   Patni, TCS,


What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  


SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


What is the use of LINKAGE SECTION?

1 Answers  


Can we put move statement in COBOL copybook

3 Answers   Global Logic,


What are the different types of condition in cobol and write their forms.

0 Answers  


In COBOL programming, what is PERFORM? What is VARYING?

0 Answers   CDC,


How to know whether the module is dynamical or statistical?

0 Answers  


What is an index for tables?

2 Answers  


give the examples for strings and unstrings in cobol

2 Answers   IBM,


input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.

4 Answers  


Which is not true about evaluate statement

0 Answers  


Categories