Page 1 of 1

Running several subroutines/programmes

Posted: Thu Mar 01, 2012 4:49 am
by mjamei
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!

Re: Running several subroutines/programmes

Posted: Thu Mar 01, 2012 9:01 am
by EViews Gareth
Yes, quite possible. Take a look at the include and exec commands.

Re: Running several subroutines/programmes

Posted: Fri Mar 02, 2012 3:37 am
by mjamei
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!

Running several subroutines/programmes

Posted: Fri Mar 02, 2012 7:30 am
by EViews Gareth
Yep, Exec is EV7 only.