Table of Contents

Search

  1. Preface
  2. Introduction to PowerExchange Utilities
  3. createdatamaps - Data Map Creation Utility
  4. DTLCCADW - Adabas PCAT Utility
  5. DTLCUIML - IMS Log Marker Utility
  6. DTLINFO - Release Information Utility
  7. DTLREXE - Remote Execution Utility
  8. DTLUAPPL - Restart Token Utility
  9. DTLUCBRG - Batch Registration Utility
  10. DTLUCDEP - CDEP Maintenance Utility
  11. DTLUCSR2 - IDMS SR2 and SR3 Records Utility
  12. DTLUCUDB - DB2 for Linux, UNIX, and Windows CDC Utility
  13. DTLULCAT and DTLULOGC - IDMS Log Catalog Utilities
  14. DTLURDMO - Data Map Utility
  15. DTLUTSK - Task Control Utility
  16. EDMLUCTR - Log Scan and Print Utility
  17. EDMUOPTS - Service Aid Utility
  18. EDMXLUTL - Event Marker Utility
  19. HOSTENT - TCP/IP Address Reporter Utility
  20. PWXCATMY - MySQL Catalog Utility
  21. PWXUCCLPRT - Print Log Summary Utility
  22. PWXUCDCT - Logger for Linux, UNIX, and Windows Utility
  23. PWXUCREG - Capture Registration Suspend Utility
  24. PWXUMAP - Map List Utility
  25. PWXUCRGP - Capture Registrations Print Utility
  26. PWXUDMX - Data Maps Update Time ECSA Memory Utility
  27. PWXUGSK - SSL Reporting Utility
  28. PWXUSSL - PowerExchange SSL Reporting Utility
  29. WRKJRNLCKE- Journal Lock Table Utility for IBM i

Example 3. Deleting Inactive Registrations

Example 3. Deleting Inactive Registrations

In the PowerExchange Navigator, you previously added some capture registrations as inactive but subsequently decided not to activate and use them. You also changed the status of some active registrations to History because the registered tables are no longer being used for change data capture.
You want to perform the following tasks:
  • Delete the Inactive registrations that were never used.
  • Set filters to process registrations with statuses H and I.
  • Set filters to process only registrations that have not changed since 2021/12/31.
  • Set filters to process registrations for Db2 for i databases.
  • Set filters to process registrations for the database instance I5V7R2.
  • Perform a validate run to check which registrations are to be processed.
  • Get a multi-line report of the registrations to be deleted.
  • If the output report is correct, run the command again with GLOBAL_VALIDATE=N to delete the registrations.
You want to run PWXUCREG on a Windows client machine, pass the name of the command set file in argument 1, and pipe the stdout report to a file on Windows while suppressing logging to detail.log.
Use the following syntax:
i:\pwxucreg.exe c:\MyPwxucregCommands\DeleteInactive.ini > c:\MyPwxucregCommands\outputs\DeleteInactive.txt
The DeleteInactive.ini file has the following contents:
SET_CONTROL_VALUE GLOBAL_REGISTRATION_LOCATION=MyZosNode, GLOBAL_USER=MyUser,GLOBAL_EPWD=MyEncrypedPwd, GLOBAL_VALIDATE=Y, DISPLAY_REGISTRATION_BEFORE_COMMAND=Y, DISPLAY_REGISTRATION_DETAIL=y, NO_MESSAGES_TO_DETAIL_LOG=Y SHOW_EXPANDED_STATEMENT=Y; DELETE_INACTIVE_REGISTRATION, NAME=*, TYPE=AS4, INSTANCE=I5V7R2, VERSION=0, DETAIL=Y, LAST_UPDATED_BEFORE_DATE="20211231", REGISTRATION_STATUS=N

0 COMMENTS

We’d like to hear from you!