How to purge all files with a particular destination?
search cancel

How to purge all files with a particular destination?

book

Article ID: 231573

calendar_today

Updated On:

Products

Spool

Issue/Introduction

We need to purge all files that have a particular destination.

Environment

Release : 14.0

Component : Spool

Resolution

The command to purge all files with a particular destination (in this example DEST=INTRDR) is:

/PFALL,D=INTRDR

The above example is to issue the command inside the Spool menu. This command can also be issued as a z/OS modify command against the Spool started task:

F CASPOOL,PFALL,D=INTRDR

Reference to the PF command can be found in the link below:

https://techdocs.broadcom.com/us/en/ca-mainframe-software/traditional-management/ca-spool/14-0/operations-and-commands/commands/pf-command-purge-file.html