Knowledge Center Contents Previous Next |
lsb_calendarop()
Adds, modifies or deletes a calendar.
DESCRIPTION
lsb_calendarop() is used to add, modify or delete a calendar. The oper parameter is one of CALADD, CALMOD, or CALDEL. When the operation CALADD is specified, the first element of the names array is used as the name of the calendar to add. The desc and timeEvents parameters should point to the description string and the time expression list, respectively. See bcaladd() for a description of time expressions. CALMOD permits the modification of the description or time expression list associated with an existing calendar. The first name in the names array indicates the calendar to be modified. The desc and timeEvents parameters can be set to the updated value or to NULL to indicate that the existing value should be maintained. If the operation is CALDEL then the names parameter points to an array of calendar names to be deleted. numNames gives the number of names in the array. options is reserved for the future use.
SYNOPSIS
#include <lsf/lsbatch.h> int *lsb_calendarop(int oper, int numNames, char **names, char *desc, char *timeEvents, int options, char **badStar) #define CALADD 1 #define CALMOD 2 #define CALMOD 3PARAMETERS
oper
One of CALADD, CALMOD, or CALDEL. Depending on which one is chosen, adds, modifies, or deletes a calendar.
*names
Depending on oper, it defines the name of the calendar is going to be added, modified or deleted.
*desc
The calendar's description list.
**timeEvents
The calendar's time events list.
numNames
The number of names in the array.
options
Currently unused.
**badStar
Need description
RETURN VALUES
character:POINTER
Sends an array about the calendars and their info .
character:NULL
Function failed.
ERRORS
If the function fails, lsberrno is set to indicate the error. If error is related to bad calendar name or time expression, the routine returns the name or expression in badStr.
SEE ALSO
Related APIs
lsb_calendarinfo()
Equivalent line command
none
Files
none
Platform Computing Inc.
www.platform.com |
Knowledge Center Contents Previous Next |