ChangeDateToNextDOW

Scheduler Date/Time Functions

Minor Business Rule

Object Name: B91300A

Parent DLL: CTOOL

Location: Client/Server

Language: C

Data Structure

D91300E - Change Date To Next DOW Value

Parameter NameData ItemData TypeReq/OptI/O/Both
jdDateDATE01JDEDATEREQBOTH

Event point for JDE Date.

cInclusiveEV01charREQINPUT

0 - The passed in day in jdDate is NOT a candidate.
1 - The passed in day in jdDate is a candidate.


^

szDayOfWeekSCHDAYOFWKcharREQINPUT

The domain of this parameter is the UDC H91/DW.
^

cDirectionEV01charREQINPUT

0 - Incerment to the next Day of Week Value specified in szDayOfWeek.
1 - Decerment to the next Day of Week Value specified in szDayOfWeek.


^

Related Functions

B0000041 Return Period End Dates
B1400010 Get Normal Number of Periods
B9800009 UTC Time Functions

Related Tables

None
DetermineNextStartDateTime

DetermineNextStartDateTime

Scheduler Date/Time Functions

Minor Business Rule

Object Name: B91300A

Parent DLL: CTOOL

Location: Client/Server

Language: C

Determines the next start date and time of a job using the recurrence pattern and range.
^

Data Structure

D91300A - Determine Next Start Date/Time

Parameter NameData ItemData TypeReq/OptI/O/Both
szScheduledJobNameSCHJBNMcharREQINPUT

A name that uniquely identifies to the system and the user a scheduled job. Use this name to indicate the job function, such as Monthly 
Close or Nightly Back Up.

szRecurrenceTypeSCHRCRTYPcharREQINPUT

The type of interval for which the scheduled job should run, such as daily,weekly, monthly or yearly.

mnScheduledMinutesSCHNUMMNSMATH_NUMERICOPTINPUT

Indicates the minutes between which the scheduler submits the job. For example, to schedule a job to run every 30 minutes, enter 30 in this 
field.

mnScheduledHoursSCHNUMHRSMATH_NUMERICOPTINPUT

Indicates the number of hours between which the scheduler submits the job. For example, to schedule a job to run every three hours enter 3 
in this field.

mnScheduleDaysSCHNUMDYMATH_NUMERICOPTINPUT

Indicates the actual number of days that a job should be run if the recurrence type for a job is Daily. If the recurrence type is Monthly or 
Yearly, this field indicates the day of the month on which the job is to be run.

mnScheduledWeeksSCHNUMWKSMATH_NUMERICOPTINPUT

If the recurrence type for a job is weekly, this field indicates the weekly interval for the job. For example, to schedule a job to run every two 
weeks,enter 2 in this field. To schedule a job to run every week, enter 1 in this field. If the recurrence type for a job is monthly, this field indicates 
on which week of the month the job runs. For example, to schedule a job to run on the second Monday of every four months, enter 2 in the 
Scheduled Weeks field

mnScheduledMonthSCHNUMMNMATH_NUMERICOPTINPUT

If the recurrence type for a job is Monthly, this field indicates the monthly interval for the job. For example, to schedule a job to run on the 
second Monday of every four months, enter 4 in this field. If the recurrence type for a job is yearly, this field indicates the numeric value of the 
month in which the job runs. For example, to schedule a job to run on the second Monday of June, enter 6 in this field.

cScheduledDaySCHDAYcharOPTINPUT

Indicates that a scheduled job will run on the day entered.

cWeekdayWEEKDAYcharOPTINPUT

Indicates that a scheduled job will run on every weekday.

cWeekendWEEKENDcharOPTINPUT

Indicates that a scheduled job will run on weekend days.

cMondayMONDAYcharOPTINPUT

Indicates that a scheduled job will run on a Monday.

cTuesdayTUESDAYcharOPTINPUT

Indicates that a scheduled job will run on a Tuesday.

cWednesdayWEDNESDAYcharOPTINPUT

Indicates that a scheduled job will run on a Wednesday.

cThursdayTHURSDAYcharOPTINPUT

Indicates that a scheduled job will run on a Thursday.

cFridayFRIDAYcharOPTINPUT

Indicates that a scheduled job will run on a Friday.

cSaturdaySATURDAYcharOPTINPUT

Indicates that a scheduled job will run on a Saturday.

cSundaySUNDAYcharOPTINPUT

Indicates that a scheduled job will run on a Sunday.

szCompanyCOcharOPTINPUT

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

mnPreviousStartTimeSCHSTTIMEMATH_NUMERICREQINPUT

The start time of the job based on Universal Time Coordinate (UTC) Time. UTC Time is the number of seconds elapsed since Midnight on 
January 1, 1970 in Greenwich, England. UTC Time used to be called Greenwich Mean (GM) Time.

mnNextStartTimeSCHSTTIMEMATH_NUMERICOPTOUTPUT

The start time of the job based on Universal Time Coordinate (UTC) Time. UTC Time is the number of seconds elapsed since Midnight on 
January 1, 1970 in Greenwich, England. UTC Time used to be called Greenwich Mean (GM) Time.

cIncludePreviousTimeEV01charREQINPUT

'1' if previous start should be a candidate for the next start  time.ab 

^

szTimeZoneTIMEZONEScharREQINPUT

Time zone the recurrence pattern should be calculated  from.ab 

^

cDaylightSavingsDAYLIGHTSVcharREQINPUT

Indicates whether to adjust the local time for daylight savings time. The U.S. daylight savings standard is used.

szDaylightSavingsRuleNameDSAVNAMEcharOPTINPUT

Unique name identifying a daylight savings rule. Use daylight savings rules to adjust time for a geographic and political locale.

Related Functions

B0000041 Return Period End Dates
B1400010 Get Normal Number of Periods
B9800009 UTC Time Functions

Related Tables

None