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

What is ASKTIME, SUSPEND

1 Answers   IBM,


01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?

3 Answers   Mind Tree,


what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C

3 Answers   TCS,


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

0 Answers  


i need a small 3d program using inline and outline.

0 Answers  






Suppose, file A has 100 records and file B has 500 records. We want to write records common to both A and B into file C and records which are present only in either A or B into another file D. What should be the logic of Cobol program to achieve this?

7 Answers   Bank Of America, Mind Tree,


what is filler and what is use of filler

3 Answers   Syntel,


what will happen if pass values more than 100 using PARM parameter?

1 Answers  


How can you declare the file ?

1 Answers   Wipro,


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


What is file status 39 ?

10 Answers   JPMorgan Chase,


TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


Categories