Hai friends
why we need to read a file before re-write a record?

Answer Posted / mf buzz

Hi,

For Rewrite, the file has to be opened in I-O mode. REWRITE
is used to update records. Rewrite statement will update
the last read record. Hence, we have to read the record to
be updated first. Hope this clarifies.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1590


Explain about different table spaces.

651


What is redefines clause in COBOL?

851


Write some characteristics of cobol as means of business language.

621


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

897






What is static and dynamic call in cobol?

600


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1949


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676


How do we get current date from system with century in COBOL?

807


Can you please let me know the centre name of INS certification in Kolkata.

1717


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

1773


In COBOL programming, what is PERFORM? What is VARYING?

672


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17054


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8168


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024