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

Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?

3 Answers   IBM, UST,


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 i give 9(10) in comp 3 instead of s9(10) ? if i can give wht would be ths ans

2 Answers   DELL,


what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?

3 Answers   TCS,


I have two files , file1 is input file it contains 10,20,30,....,records but i want to display the records in file 2 as reverse order .how can we do by using jcl& cobol(dont use array) please any one can tell me the answer

3 Answers   GreenTree, IBM,






What is the difference between a subscript and an index in a table definition?

3 Answers   TCS,


where will we code call by content and call by reference dude pls reply soon ?

2 Answers  


Discuss about changing dataset name in proc.

0 Answers  


whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumeric please reply ASAP?

9 Answers  


What is different between variable length and fixed length?

2 Answers   TCS,


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,


What are the differences between COBOL and COBOL II?

1 Answers   CSC,


Categories