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

How do you define a variable of comp-1 and comp-2?

0 Answers  


wht is the diff b/w if and evaluate stmts ?

2 Answers   DELL,


Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.

3 Answers   iGate,


Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.

2 Answers  


I have a sequential file of 100 records. How do I load the records into a two dimensional array ?

3 Answers   IBM, Xansa,






How to resolve the soc4 and soc7 errors?

5 Answers   IBM, RBS,


What is Alternate Index ? How is it different from regular index ?

2 Answers  


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

0 Answers   HCL,


How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?

4 Answers   CSC, TCS,


There is a production file which has millions of records in it.The program that uses it ends up with an SOC7 abend.It is sure that the abend is due to some invalid data in the file.Is there any way to debugg the SOC7 abend with out giving displays? I need the record which is cause for the abend.

8 Answers   Danske, iGate,


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

0 Answers  


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

0 Answers  


Categories