Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to delete the records of a dataset through cobol
programme?We should not use jcl utilitities like IDCAMS.

Answer Posted / janardhan

we can delete by usinf the files concept.

if case of sequential file there is no direct delete option.
for this

1) read the record and rewrite with spaces.
2) read record from one file and write it into another file
by excluding the record which has to be deleted.

if case of indexed file we can directly delete the record
as it contains the indexed no.

same for relative files.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes S(8) comp field occupy and its maximum value?

2144


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1176


What the difference is between continue and next sentence?

1175


What is an in line perform? When would you use it? Anything else you wish to say about it.

1079


In COBOL, what is the different between index and subscript?

1245


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1260


What is comp-1 and comp-2?

1232


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

1172


How do you reference the fixed block file formats from cobol programs

1231


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

868


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

1164


For rewrite, why is it mandatory that file needs to be opened?

1112


What are the different open modes available in cobol?

1195


Differentiate between structured cobol programming and object-oriented cobol programming.

1159


Mention the guidelines to write a structured cobol program?

1099