How to delete the records of a dataset through cobol
programme?We should not use jcl utilitities like IDCAMS.
Answer Posted / 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 View All Answers
Name the divisions, which are available in a cobol program?
What is redefines clause in COBOL?
What are the different rules to perform a Search?
How do define dynamic array in cobol.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What are literals?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
i need a small 3d program using inline and outline.
What is amode(31)
What is a report item?
What is the difference between next sentence and continue in cobol programing language?
what is the difference between COBOL2 AND COBOL390?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is the problem of ordered sequential files access?
What is the difference between PIC 9.99 and PIC9v99?