IBM Support

In IBM Sterling B2B Integrator how to purge documents stored in the file system

Question & Answer


Question

In IBM Sterling B2B Integrator (SBI) how to purge documents stored in the file system?

Cause


The user has set file system as a default document storage. Due to this documents processed by the business processes (BPs) are stored in the file system but this never gets purged from the file system.

Answer

The default Schedule_PurgeService only takes care of purging the documents on the file system.

To ensure Schedule_PurgeService BP purges documents on the file system, follow the below steps.

1. Traverse to the SBI_Install_directory.
2. Edit the archivethread.properties.in file. Verify the below properties are un commented.

GENERATE_PURGE_DOCDISK_LIST=true
PURGE_DOCS_ON_DISK=true
PURGE_DOCDISK_LIST_FILENAME=/SBI_install_directory/documents/purge_dod_list.txt

3. Stop SBI
4. Execute setupfiles.sh/cmd from SBI_Install_Bin directory
5. Confirm the properties added are reflected in the archivethread.properties file.
6. Start SBI

When BPs processes the documents, it places the documents into the above configured directory(/SBI_install_directory/documents/). If document should be archived, the backup services archives the document and places a copy of the file to the <SBI_install_directory>/arc_data folder. When purge runs, it creates a purge_dod_list that contains the list of files to be deleted from the documents directory. If PURGE_DOCS_ON_DISK is set to true, it consumes that file and deletes the files from the documents directory. The files in the arc_data directory are not deleted but can be used for any restoration.

[{"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Data management - Purge","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.2.4;5.2.4.1;5.2.4.2;5.2.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
08 November 2019

UID

swg21961607