What is the difference between write & move in COBOL?

Answers were Sorted based on User's Feedback



What is the difference between write & move in COBOL?..

Answer / guest

WRITE is used for writing a record in the output file. This
WRITTEN record will not be overwritten by the next WRITE
statement for the same record name.

MOVE is used to assign some data value to a variable. This
data in the variable will be overwritten by the next MOVE
statement for the same varaible name.

Is This Answer Correct ?    17 Yes 1 No

What is the difference between write & move in COBOL?..

Answer / neha bagrodia

In write statement, once the record is written to the
output file, no record is available in the record area....


whereas

In move statement even after the data gets moved to
destination variable, source variable's data remains
unaltered.

Is This Answer Correct ?    6 Yes 1 No

What is the difference between write & move in COBOL?..

Answer / animesh

guest your answer has one limitation. if a program is restarted and the file is opened in extebded mode then the records are re written becuase the file will clear all the records and rewrite it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is the difference between Perform para and perform asaection in cobol?

3 Answers   TCS,


How to execute a set of JCL statements from a COBOL program?

2 Answers   Patni, Syntel,


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


why do u need inspect verb?

3 Answers   Patni,


Describe the difference between subscripting and indexing ?

2 Answers  






how do you reference the fixed unblock file formats from cobol programs

0 Answers  


How do you reference the following file formats from cobol programs?

0 Answers  


File status must be checked both while opening and reading the file or only while reading the file?

2 Answers  


What are the rules of the move verb?

0 Answers  


I have a File that has duplicate records. I need only those records that occur more than thrice.?

3 Answers   IBM, Wipro,


Why we should use cursor ?

3 Answers  


How to define a array dynamically.....

5 Answers   Fidelity,


Categories