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
How do you define a variable of comp-1 and comp-2?
How you can read the file from bottom?
Define cobol?
How many bytes S(8) comp field occupy and its maximum value?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Can we redefine the field of x(200) to less than 200?
How can you get the ksds file records into your cobol program?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
A table has two indexes defined. Which one will be used by the SEARCH?
Write the code implementing the perform … varying.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How are the next sentence and continue different from each other?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning