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

How is sign stored in Packed Decimal fields and Zoned Decimal fields?

6 Answers   ABC, HCL, TCS,


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

0 Answers  


What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?

2 Answers   T systems,


Syntax for JCLLIB & JOBLIB???

1 Answers  


can we print comp 3 stmts how ?

3 Answers   Accenture, TCS,






what is SYNCHRONIZATION?

3 Answers   Syntel,


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

0 Answers  


I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?

3 Answers  


tell me about examine inspect and evaluate ?

2 Answers   CTS,


what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C

3 Answers   TCS,


If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


how do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pic x(5).

2 Answers   DELL, Mind Tree,


Categories