What is the difference between write & move in COBOL?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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..
What is the problem of ordered sequential files access?
There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.
What is static and dynamic call in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How many types of sorts are there in cobol?
i Want All cobol ERROR codes?
How many bytes do a s9 (7) comp-3 field occupy?
What type of SDLC u followed? Why?
What are VS COBOL 11 special features?
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.
In COBOL "BEFORE" advancing is there or not ?