Help for tableTdate.copyrange tableTdate1

For questions regarding programming in the EViews programming language.

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

sudesh
Posts: 51
Joined: Fri Nov 03, 2017 7:30 pm

Help for tableTdate.copyrange tableTdate1

Postby sudesh » Tue Mar 13, 2018 1:00 pm

Hi, I have two tables with the same number of columns.

I would like to copy all the data from table 2 to table 1 at the last row of table 1.

I tried this code by in vain.

Scalar x =@rows(table1)+1

table2.copyrange table1 A&x.

Can someone help me out for this code?

Otherwise if there any way to merge horizontally two tables of same dimensions.

Thanks.

EViews Matt
EViews Developer
Posts: 562
Joined: Thu Apr 25, 2013 7:48 pm

Re: Help for tableTdate.copyrange tableTdate1

Postby EViews Matt » Tue Mar 13, 2018 3:22 pm

Hello,

It appears you've confused the syntax of copyrange and copytable. Within a program you could use:

Code: Select all

!x = @rows(table1) + 1
table2.copytable table1 A!x

Outside a program, manually entering commands, you could use:

Code: Select all

string s = "A" + @str(@rows(table1) + 1)
table2.copytable table1 {s}


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 16 guests