Page 1 of 1

WFCREATE File X Days through Today

Posted: Sat Jan 08, 2022 1:09 pm
by kcaron
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

Re: WFCREATE File X Days through Today

Posted: Sat Jan 08, 2022 5:51 pm
by EViews Gareth

Code: Select all

%start = @datestr(@dateadd(@now, -5, "YY"), "YYYY-MM-DD") wfcreate d5 {%start} @now

Re: WFCREATE File X Days through Today

Posted: Mon Jan 10, 2022 2:20 pm
by kcaron
Works perfectly!!!
Thank you, Gareth!