generate date

For questions regarding programming in the EViews programming language.

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

metrix
Posts: 57
Joined: Sun Dec 08, 2013 9:15 am

Re: generate date

Postby metrix » Fri May 05, 2017 11:36 am

Import just the last date (April, August, December in every year) from my page frequency monthly to undated page.
1998m04
1998m08
1998m12
1999m04
...
2010m12.

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

Re: generate date

Postby EViews Gareth » Fri May 05, 2017 11:43 am

Your posts are always so badly worded.... You should sit down and think about what you're asking and how to explain it to someone who isn't a mind-reader.

I really have no idea what you're trying to do.

But I'm going to interpret this to mean that you want, in your undated page, a series containing three month intervals:

Code: Select all

smpl @first @first
series months = @dateval("01/04/1998")
smpl @first+1 @last
weeks = @dateadd(months(-1), 3,"m")


Which is essentially the same code I gave in the first response, just changing it from weekly to monthly and from one week to 3 months.
Follow us on Twitter @IHSEViews

metrix
Posts: 57
Joined: Sun Dec 08, 2013 9:15 am

Re: generate date

Postby metrix » Fri May 05, 2017 1:24 pm

Promised, in the future, I will ask questions well explained
Thank you for your advice :D , and thanks for your response too about code.
Best week-end.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 70 guests