SAP keeps an event log of the connector's activity.
This log can, over time, take up a lot of disk space. To save disk
space, you can set this log to automatically truncate. When you set
automatic truncation, by default SAP prints the truncated entries
to the default printer of the user who sets up the job. Therefore,
you may also want to control the print options.
To set truncation options:
- Go to IBM WebSphere InterChange Server Connector Tools window
(transaction YXR1).
- Click the Display Log button, or from the Tools menu, click
Display Log (F8).
- Click the Log Options button or from the Goto menu, click Log
Options (F7).
- Under Global Settings (for all users), enter the number of log
entries you want kept in the log after each truncation. For
example, if you specify 1000, then on each log truncation, all
entries in the log except for the newest 1000 will be
truncated.
- To truncate the log immediately, click the Truncate Log
button.
- Important:
- Set up automatic truncation of the event log by scheduling
report YXRLOGT. It is recommended that you run this report on a
regular basis.
To schedule the YXRLOGT report:
- From the System menu, click Services, click Jobs, and then
click Define Job (transaction SM36).
- Name the job, and specify the class (priority). The target host
needs to be filled in only if you have multiple application servers
accessing a single database server.
- Specify the start date and frequency of the job by clicking the
Start Date button.
- Specify the frequency with which you would like to run the job.
Select the Periodic job check box, click the Period values button,
and then select the appropriate button by clicking the Period
Values button.
- Click the save button twice to get back to the first screen.
Define which program is to be run by clicking the Steps button.
Schedule ABAP program YXRLOGT. No Variant is needed.
- By default, SAP will print the truncated entries in the log to
the default printer of the user who sets up the job. If logging is
turned high and many events are processed, this printout could be
very long (several hundred pages). You can control where the
entries will be printed (or whether they are printed at all) by
clicking on the Print specifications button.
- To deactivate the automatic printing of the truncated log,
uncheck the Print immed. check box. This way the printout will be
spooled and kept for a default of 8 days, where it could be
referenced if necessary, without wasting paper. Now click the Save
button twice.
- Click the green back arrow.
- Click the save button, and then click the green back arrow.
Your job is now scheduled.
To view your truncation job:
- From the System menu, click Services, click Jobs, and then
click Job Overview (transaction SM37).
- Type the job name, and then press Enter. If the job is in
Released state, it is fine.
- Note:
- You can access the connector log file by clicking the Connector
Log button.
