Keep File Dynamic Action

About

The Keep File Action delete all files except those matching the mask. it is opposite to The Delete File Action

Metadata tab

Keep File Action - Metadata tab
 

  1. The Write Variables option ensures that the “Package Action” logs the variable values into the “Action vars before log file” before the action is executed and logs the updated variable values into the “Action vars after log file” after the action completes.
  2. This option is typically used for debugging and is not recommended in a production environment.
  3. It can be globally disabled through the options dialog .

Parameters tab

Keep File Action - Parameters tab

N Value Parameter

The meaning of N Value parameter depends on Which File Parameter

  1. When Which File Parameter is equal to “Files Not Older Than N Days” N Value is Days
  2. When Which File Parameter is equal to “Files Older Than N Days” N Value is Days
  3. When Which File Parameter is equal to “First N Found Files” N Value file number
  4. When Which File Parameter is equal to “Bigger Than N Bytes” N Value is byte

Variables tab

The Variables tab defines the variables to be updated during the action’s execution.

Keep File Action - Variables tab

Execution log tab

The Execution log tab is populated after the action is executed. Double click on the row to view the log.

Keep File Action - Execution log tab
  1. Change Encoding Action
  2. Compare Files Action
  3. Check File Action
  4. Check File Date Action
  5. File Meta Data Action
  6. Copy Files Action
  7. Copy File Action
  8. Move File Action
  9. Rename File Action
  10. Delete File Action
  11. Keep File Action
  12. Keep File Action
  13. Merge File Action
  14. Change File Attributes Action
  15. Files List Action
  16. Replace String Action
  17. Open File Action
  18. Encrypt Action
  19. Decrypt Action

For more technologies supported by our ETL Software see Advanced ETL Processor Versions

Confused? Ask question on our ETL Forum

Posted on October 30, 2025 • 2 min read • 383 words
www.etl-tools.com About Support Pricing Cookies Policy Term Of Use Privacy Policy License