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 |
Hi Devolopers.. i need ur help.. i have 3 years of exp in Manual testing and SQL, next month onwards i shifted in to MAINFRAME TESTING... i have ZERO Knowledge abt mainframes.... PLS SUGGEST ME WHAT I LEARN in AMEERPET? mainframe testing or mainframe total devolopment subject... AS a devoloper u know every thing tester what to do PLSSSSSSSSS help me ITS VERY URGENT...
if you give cylinder(1,1)how many cylinders it will be allocate?
What is link edit in cobol?
How many bytes do a s9 (7) comp-3 field occupy?
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?
Hi All, Can anyone tell me how we can MOVE value of a X(19) variable to a S9(17) COMP-3 variable? Answer with an Example will be of great help.
i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?
Have you code any new programs in COBOL ? What is the functionality of the programs?
how we rectify soc7 and soc4 errors in project?
hi friends,can any one post the ibm mainframe inteqview questions for 1year exp candidate,for itc infotech interview?. have any body attended for this in the past?...
01 var1 pic s9(9)v99. 01 var2 pic x(30). procedure division. move 12345.99 to var1. move12345.99 to var2. display var1. display var2. what is the output?
How to delete the records of a dataset through cobol programme?We should not use jcl utilitities like IDCAMS.