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

Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?

6 Answers  


Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.

3 Answers   TCS,


how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,


What is the maximum size of a 01 level item in COBOL I? in COBOL II?

2 Answers   IBM, RBS,


what is subscript in cobol?give realtime example?

2 Answers   Wipro,






can anyone explain me the concept of COMP-4 PLEASE??

2 Answers  


What is the difference between next sentence and continue in cobol programing language?

0 Answers  


I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..

3 Answers   iGate,


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

0 Answers   IBM,


what is the difference between perform varying and perform until

4 Answers   TCS,


how to refer the data field?

0 Answers  


How do get the result of your program directly on your pc?

0 Answers   UST,


Categories