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
Which mode is used to operate the sequential file?
HOw can I get the negative sign while deduct high value from low value
Whats the difference between search & search ALL?
What guidelines should be followed to write a structured cobol prgm?
Explain about different table spaces.
What is the utilization of copybook in cobol?
What is comp-1 and comp-2?
What is the difference between PIC 9.99 and PIC9v99?
What is the difference between external and global variables in COBOL?
What is a report item?
Why did you choose to work with ibm mainframe cobol programming?
Write a program that uses move corresponding.
) how do u code after getting data?
Write the code to count the sum of n natural numbers.
What is the difference between Call and a Link?