GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 146 of 162    Print  
How do you delete specific record using COBOL
i want delete one record from the file that is
50 th record how can we delete ...?



  
Total Answers and Comments: 4 Last Update: October 16, 2009     Asked by: raju_68 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: vukoti1229
 
The file which we are using is VSAm file then we can go for Key mentioned ,
If it is a sequential file we have to read till the 49th record then needs to delete the 50th record, this is the main disadvantage with Sequential files.

Above answer was rated as good by the following members:
i_virus, kiranrcse, rajraghuram
June 10, 2008 16:08:15   #1  
gande Member Since: June 2008   Contribution: 1    

RE: How do you delete specific record using COBOL
DELETE file-name RECORD
 
Is this answer useful? Yes | No
June 16, 2008 02:50:19   #2  
vukoti1229 Member Since: June 2008   Contribution: 3    

RE: How do you delete specific record using COBOL
The file which we are using is VSAm file then we can go for Key mentioned
If it is a sequential file we have to read till the 49th record then needs to delete the 50th record this is the main disadvantage with Sequential files.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 1Overall Rating: -N/A-    
February 09, 2009 00:01:46   #3  
rramaiah1 Member Since: February 2009   Contribution: 3    

RE: How do you delete specific record using COBOL
We cannot delete a perticular record from sequential file.
 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
October 16, 2009 09:12:27   #4  
Truclu Member Since: October 2009   Contribution: 1    

RE: How do you delete specific record using COBOL
If VSAM file you can use IDCAMS to copy by count (49)....don't write a program.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape