Skip to content

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 oDD sends ZeroFile to oDD.
  • Multiple DD arguments recurse left to right.
  • On success, the DD no longer has a current record.
  • ZeroFile is 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.

See also