Page 1 of 1

Include statement in subroutine

Posted: Thu May 08, 2014 8:25 am
by jthodge
Is there a way to put an include statement (referencing an outside program) within a subroutine?

I get the error "Nested subroutine" when trying this.

Re: Include statement in subroutine

Posted: Thu May 08, 2014 8:31 am
by EViews Gareth
No, you cannot.

You can use exec, though.

Re: Include statement in subroutine

Posted: Thu May 08, 2014 8:56 am
by jthodge
Great. Thanks. "EXEC" works in my subroutine.