Joined: 06 Jun 2008 Posts: 8339 Location: Dubuque, Iowa, USA
Was there a READ with UPDATE done before, or is there a browse active? If not, no records will be deleted.
If the only option is DATASET, then you cannot delete all records from the file with the command -- you must use the GENERIC option (which in turn has other requirements) in order to delete all records from a file in CICS.
Joined: 14 Jan 2008 Posts: 2504 Location: Atlanta, Georgia, USA
If you're Browsing and you need to Delete a record which you've just Browsed/Read, you need to save the RIDFLD, issue an ENDBR, issue a Read for Update, issue a DELETE, then restart the Browse, using the saved RIDFLD, using a RESETBR or a STARTBR (increased overhead). If you're using RLS, then you don't need to do this.
You can really be in trouble if the file is NSR (not defined to any LSR Pool) and you could cause a deadly embrace.
Remember, very long NSR Browses don't return control to the QR TCB until an ENDBR is hit or task termination. You DON'T want to cause the QR TCB to go into a wait state.
Otherwise, you're taking a chance of corrupting the data-integrity of the file.