What is the difference between write & move in COBOL?
Answer Posted / 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 |
Post New Answer View All Answers
How do get the result of your program directly on your pc?
Explain how to differentiate call by context by comparing it to other calls?
What is the difference between PIC 9.99 and PIC9v99?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the Purpose of Pointer in the string?
how do you reference the rrds file formats from cobol programs
How do u write test cases?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is a SSRANGE and NOSSRANGE?
how to convert the recors form vsam file to db2 table tru file aid
What is rmode(24)
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What are the different open modes available in cobol?
Give some examples of command terminators?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?