Using @date to label workfiles

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

Posts: 4
Joined: Tue Mar 13, 2018 10:00 am

Using @date to label workfiles

Postby francesca25 » Wed Jul 25, 2018 3:41 am


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:

%BEGIN_HIST= "1990Q1"

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



EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12119
Joined: Tue Sep 16, 2008 5:38 pm

Re: Using @date to label workfiles

Postby EViews Gareth » Wed Jul 25, 2018 7:50 am

Code: Select all

%mmyy = @datestr(@now, "MMYY")
wfcreate(wf=TAYLOY_{%cty}_{%MMYY},page={%cty}_M) m {%begin_history}{%endtracker}
Follow us on Twitter @IHSEViews

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests