Running several subroutines/programmes

For questions regarding programming in the EViews programming language.

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

mjamei
Posts: 5
Joined: Fri Jan 27, 2012 4:04 am

Running several subroutines/programmes

Postby mjamei » Thu Mar 01, 2012 4:49 am

Hi,

Quick question, is it possible to run several subroutines defined in a different program? For example we have a program that has x, y an z as subroutines. Can I make another program that opens the first program and runs those subroutines?

On a similar note, if I have a few programs and I try to make a master program to run those programs, it only runs the first one and doesn't run another of the other ones. Any ideas?

Thanks!

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

Re: Running several subroutines/programmes

Postby EViews Gareth » Thu Mar 01, 2012 9:01 am

Yes, quite possible. Take a look at the include and exec commands.

mjamei
Posts: 5
Joined: Fri Jan 27, 2012 4:04 am

Re: Running several subroutines/programmes

Postby mjamei » Fri Mar 02, 2012 3:37 am

Cheers Gareth, the include command works perfectly! However we couldn't find the exec command anywhere, I have a feeling it might be because we're still on Eviews 6?

Edit: sorted now. thanks!

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

Running several subroutines/programmes

Postby EViews Gareth » Fri Mar 02, 2012 7:30 am

Yep, Exec is EV7 only.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests