Previous Topic

Next Topic

Book Contents

Book Index

Date Variable Example

In this example, a user has a job that requires date input in the commands section. The job runs reports on a date range and runs every day. The date range is two weeks before the job is run at 2:00 AM through the day before the job is run at 5:30 PM. Since the date range will change every day, date variables are the best way to accomplish this.

The syntax for the command in the job is:

run_sys_report from_date to_date

The following steps describe how to create the job and variables for this example.

In This Section

Step 1: Creating the from_date variables

Step 2: Creating the to_date variable

Step 3: Using the date range in a job

Validating the Date Variable values

See Also

Using Variables in EnterpriseSCHEDULE

Variable Expressions

String Variables

Temporary Variables

Variable Formatting Strings