Please enable JavaScript to view this site.

Overview

From version 6.2.87. When creating your Cobwebb Design you can choose to enter Date and Time variables in either the Email From or Email Subject which can then be used to set the Defer delivery Date and Time on the Cobwebb Queue. You would set the Priority to ‘Held’ in the Cobwebb Design to write the Email to the Cobwebb Queue as Held.

Then when the Release Scheduled Email Job Launcher program (CHGAFAXQ) runs it will validate the Date and Time variables and, if valid, set the Defer delivery Date and Time for the entry and release it. The email will then wait until this Date / Time is reached before being sent.

The format for adding the Date and Time variables into either the Email From (default) or Email Subject parameters are as follows and may be anywhere within the string:

%DYYYYMMDD (mandatory)

%THHMMSS (optional)

Note: If you do not supply a Time variable then the Defer Delivery Time will remain at the time the email was written to the Cobwebb Queue.

These parameters will then be stripped from the Email From or Email Subject parameters when the CHGAFAXQ Job Launcher runs. E.g.

Cobwebb Communications %D20221214%T104700

will become

Cobwebb Communications

The program CHGAFAXQ is designed to be run via the Cobwebb Job Launcher Monitor (JOBLMON), using the *STD Launcher Type, where it will run in the CPPD subsystem at a frequency defined by the "Polling interval".

The Parameters

The CHGAFAXQ program will assume that the Date and Time variables will be in the Email FROM unless you specify *SUBJECT in the Job Launcher PARM1.

If the Date or Time should be invalid then the message on the Queue will be left as Held and the Status will be changed to W=Wait. The other option is for the message to just be released now and sent without the Date / Time variables being stripped from the text. If you prefer this option then you will need to set the Job Launcher PARM2 = *YES.

If you do not want the Date or Time variables to be removed from the Email From or Subject then you may specify *LEAVE in the Job Launcher PARM3.

This program is entirely configured by the use of Parameters which are maintained via the Work with Job Launcher.

Parameter

Length

Description

Example

PARM1

8

The Email parameter holding the Date / Time variables - default = *FROM

Blank, *FROM, *SUBJECT

PARM2

4

Release the Email on the Queue if the Date or Time are invalid - default = blank to leave as Held with a Status of W=Wait

Blank, *YES

PARM3

6

Do not strip the Date / Time variables from the Email parameter - default = blank to strip the variables.

Blank, *LEAVE