I am using PL/SQL developer.
I have a report file (.rep) that fetches some data based on time period, for ex. from 1st July 2012 to 2th July 2012. I use this report by running it, entering &date_from and &date_to, and then export it in HTML via corresponding button.
I want to automate this task because basically this report needs to be executed on daily basis with today's date as a parameter. I have modified a code a bit so that now it uses trunc(current_date, 'DDD') as a parameter so that I do not have to enter it manually. Next I need to:
- run this report as a scheduled task without my interaction.
- get an HTML export copied in a folder with the date that was used as a parameter inside report (so, basically current_date).
The pseudocode of my wish script would be like the following:
reportDate = get_current_date_without_time
run my_report.rep
mkdir c:\somefolder\reportDate
copy my_report_result_as_HTML c:\somefolder\reportDate
Is it possible? If so, then how?