I hav vari declaration like.....
77 a pic s9(9).99.
77 b pic s9(9).99 comp.
77 c pic s9(9).99 comp-3.
if i use MOVE 123456789.99 to a,b,c what happen every one
working fine ?



I hav vari declaration like..... 77 a pic s9(9).99. 77 b pic s9(9).99 comp. 77 c pic s9(9).99 com..

Answer / sri

comp does not work fine becoz it does not support decimal format

Is This Answer Correct ?    10 Yes 0 No

Post New Answer

More COBOL Interview Questions

how to fetch the record before the last record in a cobol file( its a huge file and if the key field is not known)

5 Answers   IBM,


can we redefine 77 level item is it possible

4 Answers   HCL,


What kind of error is trapped by on size error option?

0 Answers  


how to display the dataset information?

2 Answers  


WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.

4 Answers   Atos Origin,






If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.

3 Answers   CTS,


How do you differentiate between cobol and cobol-ii?

0 Answers  


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1 Answers  


i want to enter the name 'pandu' into ur table how?

1 Answers   Fidelity,


how to crack cts interview apps? NOVEMBER 21 2010

2 Answers   CTS,


how do u list the abended jobs?

1 Answers   IBM,


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

0 Answers  


Categories