Hi all,
I have to implement a logic in a Sequence Job
Everyday in the morining files will be created on the Server.
My DS job will extract data from files and loads into Oracle table.
I need to put a condition.. that if the file created date = Current date then DS Sequence needs to start else fail and send a warning message ....
Thanks in advance....
File creation date = Current Date then start DS Sequence
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 62
- Joined: Tue Dec 07, 2004 7:41 am
- Location: Brasil
- Contact:
Re: File creation date = Current Date then start DS Sequence
I'm busy now, but ..
This logic can be extensive, full of details but it is simple.
The first step is to list the files and their dates:
With this command you can pick the date.
The rest believe you can.
This logic can be extensive, full of details but it is simple.
The first step is to list the files and their dates:
Code: Select all
- ls $arq -lt --time-style=long-iso | cut -d" " -f6,7
The rest believe you can.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: