Workflow Models
J_FILES_CLEANUP.wdl
The J_FILES_CLEANUP.wdl workflow model facilitates the scheduled cleanup of old job files on the application server. On execution, the model sends a nucleus command to the application server where a script removes qualified J* files found in .spool dir for jobs. This only affects the Cobol Jobs.
Workflow Model Setup
Import the J_FILES_CLEANUP.wdl workflow model to the workflow server.
Activate the model.
Set the frequency of the model execution for example - Daily, Weekly, etc.
Command Execution on Application Server
The application server receives the command from the scheduled workflow model which contains the instructions for the script execution.
The host script Job-CleanupJFiles is launched which monitors and removes all J* files found in the .spool directory for the jobs. It excludes files found in an EXEC, SCHED, or WAIT state.