Desktop productivity for business analysts and programmers

Calling SAS projects from another SAS project

Reply
New Contributor
Posts: 2

Calling SAS projects from another SAS project

Hi all,

 

as the title says, is it possible (and if yes, how) to call several projects from a 'master' project?

 

I've been given a very messy library of many SAS projects and I'm trying to automatize their working without going mad in digging their sorce programs.

 

Thanks in advance for the help!

Occasional Contributor
Posts: 8

Re: Calling SAS projects from another SAS project

just use %include in your master program. e.g.

%include /path/to/subprogram1.sas;
%include /path/to/subprogram2.sas;

this will execute all the code in subprogram1.sas then all the code in subprogram2.sas
New Contributor
Posts: 2

Re: Calling SAS projects from another SAS project

Thanks DBain. However I already tried with the %include and it seems to work only with .sas files, and not with .egp files: every time that i run it with a path to an .egp, it throws random errors.

Occasional Contributor
Posts: 8

Re: Calling SAS projects from another SAS project

I think you would have to export the EG projects as .sas files and then include them with %include.

 

This is one of the reasons that we have moved all our production jobs from EG to DI studio.

Super User
Posts: 3,233

Re: Calling SAS projects from another SAS project

If you want to productionise and schedule EG projects then I'd suggest exporting projects to SAS programs and schedule these on your SAS App server. Doing this on PCs is not reliable or easy to support. 

Ask a Question
Discussion stats
  • 4 replies
  • 169 views
  • 0 likes
  • 3 in conversation