Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to use year-end date condition in the windows batch file

3230967May 17 2016 — edited May 18 2016

Hi All,

I want my batch file to check for year-end(31-Dec-2016)condition and run the SQL file every year end and provide the reports.

For example :-

I have a batch file which run daily and executing few SQL files mentioned in it.

I want the some of the SQLfile in the batch script check for the date condition and execute the SQ file on that particular day (Every Year end like 31-Dec )

The below sample command runs on every Monday

if %date:~0,3%==Mon @sqlplus abc/abc@DEVDB@E:\weekly\scripts\report.sql

I am not good in windows command, Please help me with explanation.

Thanks in Advance!

Ramya

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2016
Added on May 17 2016
5 comments
1,217 views