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 to remove 2 duplicate records and copy only one using job control language?

1202


Mention the guidelines to write a structured cobol program?

1072


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1233


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1103


what are decleratives in cobol?

2244


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5358


What are the different rules of SORT operation?

1122


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1216


What is the difference between goback, stop run and exit program in cobol?

1572


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

1170


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

7854


What is length is cobol?

1085


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1336


Can a Search can be done on a table with or without Index?

1274


i want a program using by if, evaluate , string, unstring, perform, occurs?

4702