Using @date to label workfiles
Posted: Wed Jul 25, 2018 3:41 am
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
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