How to delete sequential file?

Showing Answers 1 - 12 of 12 Answers

Max

  • Oct 17th, 2006
 

There are many ways to delete a sequential file.The followings are common ways.

1)use tso command: ' tso delete 'file name''.

2)use jcl and write a DD card for that file with disp=(old,delete,delete).

3)or just use a ISPF pannel to do it.

Chethan V K

  • Oct 26th, 2006
 

Hi,

To delete a sequential file thru a COBOL program.. open the file in output mode and close the file immediately. All the records in the file will get deleted.

Thanks

Chethan

J.MERCY

  • Nov 5th, 2006
 

RECORDS IN SEQUENTIAL FILE CANNOT BE DELETED.

  Was this answer useful?  Yes

Anil TG

  • Dec 10th, 2006
 

y?...it wus right..it is posible to delete contents of a sequential file by opening it in output mode and closing immediately...all data will be truncated...

  Was this answer useful?  Yes

Guest

  • Jan 12th, 2007
 

In cobol there is direct command for deleting records from sequential file.  We can follow the below steps and delete the records from  sequential file.  for example.

01  input-record.

   02 in-empcd    pic 9(5).

   02 in-name      pic x(20).

  02 in-trcd         pic 9(2).

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions