Hi,
I was wondering if there was a way to use the @date function, or another method to easily label a workfile, created within a programme, with today's date?
I tried:
'#####ARGUMENTS#####
%cty="USA"
%frequency="Monthly"
%dependent_var="Int_rate"
%MMYY="@date"
%BEGIN_HIST= "1990Q1"
%ENDTRACKER="2018Q2"
wfcreate(wf=TAYLOY_{%cty}_{%MMYY},page={%cty}_M) m {%begin_history}{%endtracker}
But I'm getting an error message: Illegal date in "WFCREATE(WF=TAYLOY_USA_@DATE,PAGE=USA_M) M 2018Q2".
When I remove %MMYY the rest of the code works fine
Thanks,
Francesca
Using @date to label workfiles
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13306
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Using @date to label workfiles
Code: Select all
%mmyy = @datestr(@now, "MMYY")
wfcreate(wf=TAYLOY_{%cty}_{%MMYY},page={%cty}_M) m {%begin_history}{%endtracker}
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: Google [Bot] and 24 guests