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 |
How to covert given string into ASCII value in COBOL/MF COBOL
What is reference modification? What is UNION in sql and syntax? What is the difference between GDGS and VSAM? Which is prefer one? What is processing groups in endevor?
Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb
What kind of error is trapped by on size error option?
level number 77 is used to define a)group data b)elementary data c)redefine d)none
Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you
COMP?
How to display the index.(displacement from an array)
What is inspect in cobol ?
What are different file OPEN modes available in COBOL?
What is the file organization clause ?
What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?