Append Date to Table Name

For questions regarding programming in the EViews programming language.

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

kcaron
Posts: 88
Joined: Wed Mar 04, 2015 11:46 am

Append Date to Table Name

Postby kcaron » Mon Mar 26, 2018 8:48 am

Is there a way to create a table so that the table name is the table name and the date?

I need to include this in a line of code in a program.

For example "mytable03262018"...

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

Re: Append Date to Table Name

Postby EViews Gareth » Mon Mar 26, 2018 8:50 am

Code: Select all

%name = "mytable" + @strnow("YYYYMMDD")
table {%name}
Follow us on Twitter @IHSEViews

kcaron
Posts: 88
Joined: Wed Mar 04, 2015 11:46 am

Re: Append Date to Table Name

Postby kcaron » Mon Mar 26, 2018 9:06 am

Thank you!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 32 guests