View previous topic :: View next topic
|
Author |
Message |
pshongal
New User
Joined: 14 Jun 2012 Posts: 96 Location: India
|
|
|
|
Hi,
I have a job which runs every week. I need to create a file which has records as below.
1,2,3,4,5,6,7
When the job runs next week, it should create file like this
8,9,10,11,12,13,14
in the fifth run, it should be like this
29,30,31,1,2,3,4
Basically these are days in a month.
Any trick for this in DFSORT? |
|
Back to top |
|
|
Abid Hasan
New User
Joined: 25 Mar 2013 Posts: 88 Location: India
|
|
|
|
Hello,
See if this link helps; you'll need to tweak the code a little bit, but the link still gives enough info to go about.
Aside, DFSORT has indeed come a long way in terms of enhancements since the original post in the link. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Indeed, a long way.
Consult the documentation of the date functions. There's not much of a trick to it. |
|
Back to top |
|
|
pshongal
New User
Joined: 14 Jun 2012 Posts: 96 Location: India
|
|
|
|
Thanks for your inputs guys. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
Quote: |
Any trick for this in DFSORT? |
Always bookmark this
look at page10 onwards |
|
Back to top |
|
|
|