Please enable JavaScript to view this site.

Navigation: Technical Information > Cobwebb APIs & Commands

FMNOTIFYP - Print Folder Monitor Notifications

Scroll Prev Top Next More

Cobwebb Server Version > 6.2.82. This command must be run on the IBM i and can be used to Print & Delete Folder Monitor Notifications that have been written via the Cobwebb Folder Monitor using the Folder Monitor program FMNOTIFY.

The Folder Monitor Notifications file contains the Folder Monitor Name, File Path and Date Time that the Notification record was written to the file. Running the command will Print & Delete this information and will skip to a new page on change in Folder Monitor Name. This can be useful if you wish to monitor a "failed" folder and send an email notification of the failure(s) (using a Cobwebb Design). Example print output:

FMNOTIFYP                           Print Folder Monitor Notifications
Monitor Name: MONITOR1
File Path
---------
/test/failed/Document 1.txt
/test/failed/Document 2.txt

The command can be scheduled to run, as often as you wish, via the Cobwebb Job Scheduler. The resultant print can then be processed by a Cobwebb Design to send an email with the details to the relevant person.

Make sure that you have the CPPD library in your library list. To do this, enter the following command: -

ADDLIBLE CPPD

If the library already exists in your library list, you will receive an error message, which you may ignore.  

Next enter FMNOTIFYP and press F4=Prompt.  

By default this command will create a spooled file called FMNOTIFYPR in the Output Queue QPRINT in library CPPD.        

Command Parameters

Output Queue Name (OUTQ)

The Output Queue where you wish the generated output to be written. Default QPRINT.

Output Queue Library (OUTQL)

The Library where the Output Queue resides. Default CPPD.

User Data (USRDTA)

The User Data for the generated output. Default FMNOTIFYP.