ZeroFile command¶
Include: Use Db\DBCommands.pkg
Purpose¶
Clears all records from the storage represented by a DD.
Syntax¶
ZeroFile oDataDictionary
ZeroFile oFirstDD oSecondDD
How it works¶
ZeroFile oDDsendsZeroFiletooDD.- Multiple DD arguments recurse left to right.
- On success, the DD no longer has a current record.
ZeroFileis destructive; reserve it for temporary, setup, or administrative storage flows.
Example¶
ZeroFile oScratchCustomerDD
Clear oScratchCustomerDD
Find GT oScratchCustomerDD.Customer_Number
After clearing storage, the follow-up find leaves Found=False when no rows remain.