Table of Contents

Search

  1. Preface
  2. Introduction to PowerExchange Commands
  3. Adabas Log-Based ECCR Commands
  4. Batch VSAM ECCR Commands
  5. CICS/VSAM ECCR Commands
  6. Datacom Table-Based ECCR Commands
  7. DB2 for z/OS ECCR Commands
  8. IDMS Log-Based ECCR Commands
  9. IMS Synchronous ECCR Commands
  10. IMS Log-Based ECCR Commands
  11. PowerExchange Agent Commands
  12. PowerExchange Condense Commands
  13. PowerExchange Listener Commands
  14. PowerExchange Logger for MVS Commands
  15. PowerExchange Logger for Linux, UNIX, and Windows Commands
  16. pwxcmd Commands

Command Reference

Command Reference

FILESWITCH Command

FILESWITCH Command

Closes open PowerExchange Logger for Linux, UNIX, and Windows log files if they contain data and then switches to a new set of log files. If the log files do not contain data, the file switch does not occur.
The message output from this command is displayed on screen and written to the PowerExchange message log.

Syntax

Use the following syntax to issue the command from the command line against a PowerExchange Logger process that is running in foreground mode:
FILESWITCH
Alternatively, use the pwxcmd program to issue the fileswitch command. You must use pwxcmd if you run the PowerExchange Logger in background mode.

Usage Notes

You can perform an automated file switch before the next file switch is due to occur to make change data available for extraction processing. If you run extractions in batch extraction mode, include the fileswitch command in a script and then run that script before the batch extractions. To issue the fileswitch command from a script or batch file, you must use the pwxcmd program.
For example, to extract change data hourly from PowerExchange Logger log files, first set the FILE_SWITCH_CRIT and FILE_SWITCH_VAL parameters in the pwxccl.cfg file such that a file switch does not automatically occur before the extractions run. You might set the parameters to perform an automatic file switch after every 1,000,000 record updates. Then include the pwxcmd fileswitch command in a script that runs shortly before the scheduled extraction processes.
Usually, you do not need to perform file switches manually if you use continuous extraction mode.

Example Output

The following example FILESWITCH output was generated when VERBOSE=Y in the pwxccl.cfg file:
PWX-06422 Condense: Received FILESWITCH request. PWX-33283 File switch because of a FILESWITCH command. Records 800. Elapsed seconds 13 PWX-36940 Closed file C:\Perforce\all\pwx\resources\ccl\group1\grp2.CND.CP121205.T1455001. PWX-36941 Records 360. Commits 40. File sequence 1212051455001. Sequence token D400000057A541000000000000FFFFFFFFFFFFFFFFFFFF00000103000095B400C4FFFF0000.

0 COMMENTS

We’d like to hear from you!