Please enable JavaScript to view this site.

Navigation: Technical Information > Cobwebb Monitor Programs

Creating your own Parameter Maintenance program

Scroll Prev Top Next More

If you wish to use your own program for your Folder Monitor / Job Launcher Monitor rather than using the supplied program then it MUST have the following parameters; if not the program will fail when you call it by pressing F10 to View or Maintain your parameters.

Alternatively look at the following which will allow you to use the supplied Cobwebb Parameter maintenance programs:

Adding your Monitor Type to the selection list

Adding your Launcher Type to the selection list

 

      *

     C     *ENTRY        PList

     C                   Parm                    @@MNAM

     C                   Parm                    @@MTYP

     C                   Parm                    Option

@@MNAM is a 10A field and is the Name of your Folder Monitor / Job Launcher.

@@MTYP is a 4A field and is the Type of Folder Monitor / Launcher e.g. *DOC, *FTP, *STD, *REF etc. this is used by the supplied maintenance program to look up the required parameter names and will probably not be used in your bespoke program.

Option is a 1A field and is the Option being performed e.g. 2=Change or 5=View as the maintenance program is only ever called in these two scenarios. When your program writes entries to the Parameters file the value passed in in @@MNAM must be written to the field FPMNAM or JPMNAM for the Folder Monitor or Job Launcher Monitor respectively.

Please refer to the Parameter File Definition full details of the Parameters file.

Adding your Monitor Type to the selection list

If you wish you can add a new entry to the list of Monitor Types displayed when you press F4=Prompt when Changing the Monitor Type. If you do this then you will be able to maintain the parameters without writing your own program.

You need to add a Unique entry to the AFLRMONT file - please don't use the first character of the FTMTYP as an asterisk as this is reserved for Cobwebb use.

Note: There is no maintenance program for this file but we have provided some sample source ADDFLRMT in QUSRTOOLLE in library CPPD which you can modify and compile.

     A                                      CCSID(65535)

     A                                      REF(AFLDREF)

     A                                      UNIQUE

     A          R AFLRMONTR                 TEXT('Folder Monitor Types')

     A            FTMTYP    R               REFFLD(MTYP)

     A            FTMPGM    R               REFFLD(MPGM)

     A            FTMPGL    R               REFFLD(MPGL)

     A            FTTDSC    R               REFFLD(MDSC)

     A                                      COLHDG('Monitor Type' 'Description')

     A            FTPRMN       180A         COLHDG('Parm' 'Name' 'ARRAY 18*10') 

     A            FTPRMD      2376A         COLHDG('Parm' 'Desc' 'ARRAY 18*132')

     A          K FTMTYP         

 

Adding your Launcher Type to the selection list

If you wish you can add a new entry to the list of Launcher Types displayed when you press F4=Prompt when Changing the Launcher Type. If you do this then you will be able to maintain the parameters without writing your own program.

You need to add a Unique entry to the AJOBLAUT file - please don't use the first character of the JTMTYP as an asterisk as this is reserved for Cobwebb use.

Note: There is no maintenance program for this file but we have provided some sample source ADDJOBLT in QUSRTOOLLE in library CPPD which you can modify and compile.

     A                                      CCSID(65535)

     A                                      REF(AFLDREF)

     A                                      UNIQUE

     A          R AJOBLAUTR                 TEXT('Job Launcher Types')

     A            JTMTYP    R               REFFLD(MTYP)

     A            JTMPGM    R               REFFLD(MPGM)

     A            JTMPGL    R               REFFLD(MPGL)

     A            JTTDSC    R               REFFLD(MDSC)

     A                                      COLHDG('Job Type' 'Description')

     A            JTPRMN       180A         COLHDG('Parm' 'Name' 'ARRAY 18*10') 

     A            JTPRMD      2376A         COLHDG('Parm' 'Desc' 'ARRAY 18*132')

     A          K JTMTYP