g4gcal_addEvent

*//////////////////////////////////////////////////////////////*

* g4gcal_addEvent - Add Calendar Event *

* *

* Output: *

* out_errMsg - The error message (if error exists). *

* *

* Returns: *

* -1 for error, 0 for no error. *

* *

* Settable Variables ([r]=required) *

* id - Google ID [r] *

* calendar_id - Calendar ID [r] *

* event_title - Event Title [r] *

* start_date - Start Date (*USA0) [r] *

* start_time - Start Date (*HMS0) [r] *

* end_date - End Date (*USA0) [r] *

* end_time - End Date (*HMS0) [r] *

* event_key - Event Key *

* event_location - Event Location *

* event_description - Event Description *

* reminder - Reminder Type (*DFT, email, sms, popup) *

* reminder_time - Number of minutes before event to execute *

* the reminder (if specified). *

* send_note - Send notifications to attendees (*NO, *YES) *

* ccsid - The CCSID to use (1208) *

* debug - Turn on Debug (*NO, *YES) *

* debug_file - The debug file name. *

* (/tmp/g4g_[id]_addCalendarEventDebug.txt) *

* *

*//////////////////////////////////////////////////////////////*

D g4gcal_addEvent...

D PR 10i 0

D out_evtID 256

D out_errMsg 256 Options(*NOPASS)

g4gcal_addEvent will add an event to the specified calendar.

Returns: 0 for successful add, -1 for error.

Required Parameters:

  • Event ID (output) - The ID of the event that is created.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables (use g4gcal_setValue):

  • id (required) - Your Google ID

  • calendar_id (required) - The ID of the calendar to add an event to. This should be a valid Calendar ID from field GGCCALID in file G4GCALPF.

  • event_title (required) - The title of the event to add.

  • start_date (required) - The date the event starts.

  • start_time (required) - The time the event starts (in 24 hour format).

  • end_date (required) - The date the event ends.

  • end_time (required) - The time the event ends (in 24 hour format. For example, 1:30pm would be 133000)

  • event_key - The event key to specify on the event. The default is blank and no event key will be added.

  • event_location - The location of the event. The default is blank.

  • event_description - A description of the event. The default is blank.

  • reminder - Whether or not to specify a reminder. *DFT is the default and will use the default reminder set up in the specific calendar which will set up the event with the default reminder type as well as the default reminder time. The other values are email, sms, and popup (case sensitive).

  • reminder_time - Enter the number of minutes before the event begins to activate the reminder. This value is only used if the Reminder parameter is not *DFT.

  • send_note - Specify if you wish to send notifications for the event. The default value is *NO. Use *YES if you wish notifications to be sent to those attending.

  • ccsid - The CCSID to use. The default is 1208.

  • debug - Specify *YES to turn on debug, or *NO to turn off debug. The default is *NO.

  • debug_file - Specify the fully qualified file name for the main debug file. The default is /tmp/g4g_[id]_addCalendarEventDebug.txt