Hi,
I have quite a few bteq scripts which I am executing from Perl program. These scripts I need to run during the first 10 days of every month( on the one of the first 10 days of each month). The dates are in the following format for the previous month:
"
where START_TS
BETWEEN cast (CURRENT_TIMESTAMP'2004-05-01 00:00:00.00000' as timestamp) AND cast ('2004-05-30 23:23:59.99999' as timestamp) "
In the above sql I am hard coding both dates. Here I want to automate these scripts so I do not have change starting and ending timestamp each month.
Any help would be appreciated.
thanks
I have quite a few bteq scripts which I am executing from Perl program. These scripts I need to run during the first 10 days of every month( on the one of the first 10 days of each month). The dates are in the following format for the previous month:
"
where START_TS
BETWEEN cast (CURRENT_TIMESTAMP'2004-05-01 00:00:00.00000' as timestamp) AND cast ('2004-05-30 23:23:59.99999' as timestamp) "
In the above sql I am hard coding both dates. Here I want to automate these scripts so I do not have change starting and ending timestamp each month.
Any help would be appreciated.
thanks