ALLInterview.com :: Home Page Forum9.Com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> MainFrame >> IBM-MainFrame >> COBOL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
Question
Hai friends
 why we need to read a file before re-write a record?
 Question Submitted By :: Rameshkumar.v
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hai friends why we need to read a file before re-write a record?
Answer
# 1
A disk file, for example MASTER FILE, can be opened as I-O, 
which means records from the disk will be accessed, read, 
changed, and rewritten.
 
Is This Answer Correct ?    1 Yes 0 No
Viks
 
  Re: Hai friends why we need to read a file before re-write a record?
Answer
# 2
Without knowing what field to rewrite we cannot use rewrite
the field in a record.Thats why we read the file first and
then rewrite the same
 
Is This Answer Correct ?    2 Yes 0 No
Diwakar
 
 
 
  Re: Hai friends why we need to read a file before re-write a record?
Answer
# 3
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 ?    0 Yes 0 No
Mf Buzz
 
  Re: Hai friends why we need to read a file before re-write a record?
Answer
# 4
Rewrite is nothing but Update so if you want to 
modify/changes in the record you should read the record 
first, which you want to 
then you  can rewrite it. I hope it will clarify your 
doubts.
 
Is This Answer Correct ?    0 Yes 0 No
Mallappa
 
 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ? Microsoft3
Can anyone please give the example of Inline Perform. TCS4
What is Static and Dynamic linking ?  1
What is an explicit scope terminator?  1
What is the point of the REPLACING option of a copy statement?  3
Have you code any new programs in COBOL ? What is the functionality of the programs? Xansa2
What is 88 level used for ?  2
What is the mode in which you will OPEN a file for writing?  2
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.  1
How do you set a return code to the JCL from a COBOL program?  3
What is report-item?  1
88 level entry is used for (a) data items in WORKING-STORAGE SECTION (b) items with RENAMES clause (c) condition-names (d) None of the above TCS2
What is file status 92?  1
Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it. IBM1
What is the difference between CONTINUE & NEXT SENTENCE ?  1
what is the minimum number of lines a Cobol program should have to successfully compile and run  1
can we use variable picture clause as xx.99 in cobol.  2
What is the use of EVALUATE statement? Tesco2
The maximum number of dimensions that an array can have in COBOL-85 is ?  7
Name the divisions in a COBOL program ?  3
 
For more COBOL Interview Questions Click Here 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com