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
What is amode(31)
What are the different open modes available in cobol?
how to refer the data field?
) how do u code after getting data?
What is the local-storage section?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is a SSRANGE and NOSSRANGE?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is amode(24)?
What is an in line perform? When would you use it? Anything else you wish to say about it.
Discuss about changing dataset name in proc.
How to know whether the module is dynamical or statistical?
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 ?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?