Please enable JavaScript to view this site.
The Cobwebb Folder Monitor [FLRMON] allows you to monitor a folder on the IBM i and call a user-defined program to process each file that arrives in the folder.
When the Folder Monitor is running the specified folder is monitored at a frequency defined by the polling interval. For each file found it will call the call the program specified using the supplied Job Description. When the monitor program returns, if the return code is x'00' then the program is deemed successful and the file is deleted. Otherwise the program is deemed to have failed and the file is moved to the designated failed folder. You may create your own Folder Monitor program, please see Creating a bespoke Folder Monitor program for details, or you ask Cobwebb to create one for you.
You need to create a monitor entry for each folder you wish to monitor using the Cobwebb Folder Monitor. This can be found from the Cobwebb Main Menu - PPD File Maintenance - Option 10.
Type in your choices and then press Enter, this will take you to a second screen. Highlighted entries are those that are Online those in red have an invalid folder specified. Each Online entry will be monitored when you next start the CPPD Subsystem.
Note: If you change any information here then you will need to Stop and Restart the CPPD subsystem for the changes to take effect.
Position to
Enter one or more characters of the Folder Monitor Name from which to start the display.
Options
Select one of the following options:
1=Create |
Allows you to create a new Folder Monitor entry. This option is only valid on the top (entry) line of the display. |
2=Revise |
Use this option to revise an existing Folder Monitor entry. |
3=Copy |
Copy an existing Folder Monitor entry. |
4=Delete |
Delete an existing Folder Monitor entry. |
5=View |
View an existing Folder Monitor entry. |
7=Online |
Make Folder Monitor entry Online. |
8=Offline |
Make Folder Monitor entry Offline. |
Entries
Monitor Name
From version 6.2.62 - Specify a unique name for your Folder Monitor entry. This will be used as the name of the Job running in the CPPD Subsystem when it is active.
Description
From version 6.2.62 - Enter a description for your Folder Monitor entry. If you leave this blank then the folder being monitored will be displayed in the list.
Monitor Type
From version 6.2.62 - This is the Type of Folder Monitor selected. If you have chosen to use a bespoke Parameter Maintenance program then this will be blank.
Folder to Monitor
Prior to Version 6.2.62 only - Specify the name of the folder that you wish to monitor e.g. /test/flrmon
Status
This entry displays the status of the entry. Online means that this folder will be monitored when the CPPD Subsystem is started; Offline entries will not be monitored.
Function keys
F3=Exit |
Exits the Work with folder monitor screen and returns to the Maintenance menu, without updating. |
F5=Refresh |
Refreshes the list of monitor entries |
F12=Previous |
Exits the Work with folder monitor screen and returns to the Maintenance menu, without updating. |
Page Up |
Scrolls up through the list |
Page Down |
Scrolls down through the list |