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.

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / vivek chandrasekaran

If the file 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.

Syntax for deleting record.

DELETE file_name RECORD

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

How do you code Cobol to access a parameter that has been defined in JCL?

3 Answers  


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

0 Answers   IBM,


SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


Can anyone please give the example of Inline Perform.

6 Answers   TCS,


What is the difference between comp and comp-3?

0 Answers  


which generation language is cobol

4 Answers   Kanbay,


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

0 Answers   IBM,


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

0 Answers  


what are the working storage fields in BMS macro?

2 Answers   IBM,


Can anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.

2 Answers  


can we use the two 01 level in file discription ?

6 Answers  


how to display comp3 variables reply soon ?

4 Answers   Patni,


Categories