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 do u handle errors in BMS macro?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
How you can read the file from bottom?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Write a program that uses move corresponding.
what are decleratives in cobol?
What is the difference between Call and a Link?
Explain about different table spaces.
Explain the configuration section of a cobol program with examples of syntax.
How do we get current date from system with century in COBOL?
how do you reference the ksds vsam file formats from cobol programs
Can we redefine the field of x(200) to less than 200?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is inspect in cobol ?
What are the different open modes available in cobol?