Using the History Record Purge utility


To delete records from the history data set, you can use the History Record Purge utility (program ARCUHPRG). This utility purges records based on key fields and on the execution date.

Sample JCL to execute this utility (see the following figure) is located in member #ARCHPRG of the AR/CTL sample library.

History Record Purge utility JCL

//ARCUHPRG JOB (ACCT),'PROGRAMMER-INFO',CLASS=A,MSGCLASS=X,REGION=4M
//ARCUHPRG EXEC PGM=ARCUHPRG,                                           
//             PARM='****,****,********,********,********,********,ARCPX
//             ROG1,-000030',                                           
//*            PARM='****,****,********,********,********,********,****X
//*            ****,1996321',                                           
//             REGION=05120K                                            
//STEPLIB  DD  DSNAME=BMCARC.V20.LOAD,DISP=SHR
//ARCHIST  DD  DSNAME=BMCARC.HISTORY.DATA.SET,DISP=SHR
//ARCPURGE DD  SYSOUT=*
//SYSUDUMP DD  SYSOUT=*


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*