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?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

973


Can we redefine the field of x(200) to less than 200?

1099


What is amode(24)?

884


) how do u code after getting data?

1800


In COBOL, what is the different between index and subscript?

948


What is the difference between perform … with test after and perform … with test before?

1154


Write the code implementing the perform … varying.

822


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

846


What is the difference between goback, stop run and exit program in cobol?

1229


i want a program using by if, evaluate , string, unstring, perform, occurs?

4345


What is comp-1 and comp-2?

938


How do define dynamic array in cobol.

859


Write a cobol program making use of the redefine clause.

927


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1169


) what is the difference between AID and HANDLE AID?

1889