Provides a count of the number of records deleted by &FILE DEL processing.
NCL File Processing allows records to be deleted from a User DataBase (UDB) using the &FILE DEL statement, including support for the deletion of groups of records with a single statement. The deletion of groups of records is termed 'generic' deletion.
Generic deletion is triggered by use of the OPT=KEQALL or OPT=KGEALL operands on the &FILE DEL statement.
The &FILERCNT system variable provides a count of the number of records deleted during a generic process.
Example: &FILERCNT
&WRITE DATA=&FILERCNT RECORDS DELETED.
&FILERCNT remains unchanged until the next &FILE DEL or &FILE CLOSE statement.
Notes:
If no active file exists, &FILERCNT is set to 0.
If a non-generic deletion of a single record is performed, &FILERCNT is set to 1.
| Copyright © 2009 CA. All rights reserved. |
|