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. DTLINFOX - Enhanced Release Information Utility
  8. DTLREXE - Remote Execution Utility
  9. DTLUAPPL - Restart Token Utility
  10. DTLUCBRG - Batch Registration Utility
  11. DTLUCDEP - CDEP Maintenance Utility
  12. DTLUCSR2 - IDMS SR2 and SR3 Records Utility
  13. DTLUCUDB - DB2 for Linux, UNIX, and Windows CDC Utility
  14. DTLULCAT and DTLULOGC - IDMS Log Catalog Utilities
  15. DTLURDMO - Data Map Utility
  16. DTLUTSK - Task Control Utility
  17. EDMLUCTR - Log Scan and Print Utility
  18. EDMUOPTS - Service Aid Utility
  19. EDMXLUTL - Event Marker Utility
  20. HOSTENT - TCP/IP Address Reporter Utility
  21. PWXCATMY - MySQL Catalog Utility
  22. PWXUCCLPRT - Print Log Summary Utility
  23. PWXUCDCT - Logger for Linux, UNIX, and Windows Utility
  24. PWXUCREG - Capture Registration Utility
  25. PWXUMAP - Map List Utility
  26. PWXUCRGP - Capture Registrations Print Utility
  27. PWXUDMX - Data Maps Update Time ECSA Memory Utility
  28. PWXUGSK - SSL Reporting Utility
  29. PWXUSSL - PowerExchange SSL Reporting Utility
  30. 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!