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
How to remove 2 duplicate records and copy only one using job control language?
Mention the guidelines to write a structured cobol program?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
what are decleratives in cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What are the different rules of SORT operation?
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
What is the difference between goback, stop run and exit program in cobol?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
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?
What is length is cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Can a Search can be done on a table with or without Index?
i want a program using by if, evaluate , string, unstring, perform, occurs?