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


Please Help Members By Posting Answers For Below Questions

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.

5710


Write down the divisions of cobol program?

677


HOw can I get the negative sign while deduct high value from low value

1805


Name some of the examples of COBOl 11?

2696


What rules are to be followed while using the corresponding options?

647






What is the Purpose of POINTER Phrase in STRING command in COBOL?

733


What is the difference between goback, stop run and exit program in cobol?

945


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

689


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 ?

1886


how do you reference the printer file formats from cobol programs

679


Write the code to count the sum of n natural numbers.

705


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2071


Explain what you understand by passing by value.

717


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8191


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1126