Directly Updating the prtwrkcleanup.cfg File
Use this procedure to update the prtwrkcleanup.cfg file directly. This involves opening the file in a text editor and specifying the desired parameter values.
Before updating the configuration file make sure the correct version exists in the $LAWDIR/system directory. To determine if it is correct, compare it to the newer version in the $GENDIR/install directory. If it is not correct, copy the newer version to $LAWDIR/system or execute the mergePrtWrkClnCfg.pl merge script
To use the merge script, navigate in a command line session to $GENDIR/install and execute perl mergePrtWrkClnCfg.pl.
To directly edit the prtwrkcleanup.cfg file:
- In a text editor, open the prtwrkcleanup.cfg in the $LAWDIR/system directory.
- Specify this information:
- VERBOSE
- Valid entries are true and false. If set to true, all output will be printed to the screen.
- RQC_CLEAN
- Valid entries are true and false. If you set this to
true, the Lawson
Requisition Center (RQC) files will be cleaned.Note: If you set this option to true, after the cleanup has completed, you must either restart the web server or do these steps:
- Refresh the IOS cache (run http(s):://servername:port/servlet/IOSCacheRefresh).
- Refresh the RQC cache (run http(s):://servername:port/rqc/html/utility.htm).
- Have users delete their browser's cache. When they do this they should ensure that the Preserve Favorites website data check box is not selected.
- Users should then enter RQC and immediately click on the New button.
- PRT_CLEAN
- Valid entries are true and false. Set this value to true to clean up Infor Lawson System Foundation generated print files.
- USR_CLEAN
- Valid entries are true and false. Set this value to true to clean up the user home directories.
- WRK_CLEAN
- Valid entries are true and false. Set this value to true to clean up Infor Lawson System Foundation generated work files.
- WAS_CLEAN
- Valid entries are true and false. Set this value to true only if you want to clean up WebSphere-generated dump and trace files.
- WASHOME
- The directory where the WebSphere Application Server is installed. This value is required if you set WAS_CLEAN to true.
- USR_USERNAME
-
Specify true if you want the script to use the $LAWDIR/system/prtwrkcln_usrnames.cfg file to exclude specific users' home directory files from the cleanup.
This file has multiple divided sections. Make sure to update the right section in order to avoid undesired results.
Each section should hold usernames for specific cleanup jobs. Please see the configuration file for more detail.
- PRT_USERNAME
-
Specify true if you want the script to use the $LAWDIR/system/prtwrkcln_usrnames.cfg file to exclude specific users' print files from the cleanup.
This file has multiple divided sections. Make sure to update the right section in order to avoid undesired results.
Each section should hold usernames for specific cleanup jobs. Please see the configuration file for more detail.
- RQC_USERNAME
- Specify true if you want the script to use the $LAWDIR/system/prtwrkcln_usrnames.cfg file to exclude
specific users' RQC files from the cleanup.
This file has multiple divided sections. Make sure to update the right section in order to avoid undesired results.
Each section should hold usernames for specific cleanup jobs. Please see the configuration file for more detail.
- PRODUCTLINE
- The name of the product line where you want to clean up work files. If you have multiple product lines, you can specify them in a comma-separated list.
- WRK_EXCLUDE
- Specify true if you want the script to use the $LAWDIR/prtwrkcln_exclude.cfg file to exclude the listed work files from being deleted. See the prtwrkcln_exclude.cfg file for more information.
- RQC_STARTDATE
- The date from which to start deleting RQC work files, in MMDDYYYY format. This parameter is optional and can only be used in conjunction with the RQC_ENDDATE parameter.
- RQC_ENDDATE
- The date up to which to delete RQC work files, in MMDDYYYY format. You must specify a value for either the RQC_ENDDATE parameter or the RQC_CURDATE parameter, but not both.
- RQC_CURDATE
-
The number of days before the current date to exclude from the deletion process.
For example,
RQC_CURDATE=3
will cause the script to delete all RQC work files except those created in the past three days.You must specify a value for either the RQC_ENDDATE parameter or the RQC_CURDATE parameter, but not both.
- PRT_STARTDATE
- The date from which to start deleting job entries, in MMDDYYYY
format. This parameter is optional and can only be used in
conjunction with the PRT_ENDDATE parameter.Note: This value is used by PRT_CLEAN and USR_CLEAN.
- PRT_ENDDATE
- The date up to which to delete job entries,
in MMDDYYYY format. You must specify a value for either the
PRT_ENDDATE parameter or the PRT_CURDATE parameter, but not
both.Note: This value is used by PRT_CLEAN and USR_CLEAN
- PRT_CURDATE
-
The number of days before the current date to exclude from the deletion process.
For example,
PRT_CURDATE=3
will cause the script to delete all files except those created in the past three days.You must specify a value for either the PRT_ENDDATE parameter or the PRT_CURDATE parameter, but not both.
Note: This value is used by PRT_CLEAN and USR_CLEAN - WRK_STARTDATE
- The date from which to start deleting work files, in MMDDYYYY format. This parameter is optional and can only be used in conjunction with the WRK_ENDDATE parameter.
- WRK_ENDDATE
- The date up to which to delete work files, in MMDDYYYY format. You must specify a value for either the WRK_ENDDATE parameter or the WRK_CURDATE parameter, but not both.
- WRK_CURDATE
-
The number of days before the current date to exclude from the deletion process.
For example,
WRK_CURDATE=3
will cause the script to delete all work files except those created in the past three days.You must specify a value for either the WRK_ENDDATE parameter or the WRK_CURDATE parameter, but not both.
- Save and close the prtwrkcleanup.cfg file.