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

Answer Posted / guest

The file may be ESDS, RRDS or KSDS.
Assuming that the access mode is sequential.
If you are directly performing a 'REWRITE' operation it
will end oup with file status=43. Means'DELETE OR REWRITE &
NO GOOD READ FIRST'.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the sections present in data division.

695


How are the next sentence and continue different from each other?

755


Explain how to differentiate call by context by comparing it to other calls?

679


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.

1103


What are the different open modes available in cobol?

713






Which mode is used to operate the sequential file?

654


How many sections are there in data division in COBOL?

674


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

666


Can we redefine the field of x(200) to less than 200?

811


How do you differentiate between cobol and cobol-ii?

646


What is the difference between PIC 9.99 and PIC9v99?

771


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1862


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10543


How do you reference the following file formats from cobol programs?

689


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

699