I'm trying to write a program that starts by creating a WF with a 5 day week periodicity that has the start date as 5 years ago from today (-1825 days) and an end date as the current date.
Can't figure out how to do this. I know I need to use WFCREATE, and I know I can use @now as for either the start or date, but I can't figure out how to code the start date...
Can someone help?
Most grateful.
K
WFCREATE File X Days through Today
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13330
- Joined: Tue Sep 16, 2008 5:38 pm
Re: WFCREATE File X Days through Today
Code: Select all
%start = @datestr(@dateadd(@now, -5, "YY"), "YYYY-MM-DD")
wfcreate d5 {%start} @now
Follow us on Twitter @IHSEViews
Re: WFCREATE File X Days through Today
Works perfectly!!!
Thank you, Gareth!
Thank you, Gareth!
Who is online
Users browsing this forum: No registered users and 7 guests