How to Schedule a BI Publisher Report with Dynamic Date Values (Doc ID 1410194.1)

Last updated on DECEMBER 07, 2016

Applies to:

BI Publisher (formerly XML Publisher) - Version: 10.1.3.4.0 to 11.1.1.6.0 - Release: 10.1 to 11.1
Information in this document applies to any platform.

Goal

Defined two date parameters:
Today: {$SYSDATE()$} MM-dd-yyyy HH:mm:ss
Yesterday: {$SYSDATE()-1$} MM-dd-yyyy HH:mm:ss
In View mode: they show current date and time:
Example:
Today: 02-08-2012 07:21:14
Yesterday: 02-07-2012 07:21:14

When submitting a scheduled job, they are fixed at time the job is created,
they are not updated at run time.

How can a scheduled job be created where the date values "yesterday" and "today" are correct
when the report is run, rather than fixed as the values when the schedule was first created?


Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms