DATA Step, Macro, Functions and more

How to write SAS code for call another sas program

Reply
Occasional Contributor
Posts: 5

How to write SAS code for call another sas program

               I want to  write sas code within  program1.sas  to call program2.sas ,How to write SAS code for this case?

 

example SAS code as below

 

%Macro Reporting;
********%Daily;
%IF &sysday=Thursday %THEN

    ****** call program2.sas

 

%Mend;

%Reporting;

Super User
Posts: 10,278

Re: How to write SAS code for call another sas program

Posted in reply to tatomssii

You can include code from a file with %include.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Occasional Contributor
Posts: 5

Re: How to write SAS code for call another sas program

Posted in reply to KurtBremser
program2.sas will execute automatically,right ?
Super User
Posts: 5,884

Re: How to write SAS code for call another sas program

Posted in reply to tatomssii
You tell us, just hit The Running Man 😉
Data never sleeps
Super User
Posts: 10,278

Re: How to write SAS code for call another sas program


@LinusH wrote:
You tell us, just hit The Running Man 😉

Also known as Maxim 4 Smiley Happy

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Ask a Question
Discussion stats
  • 4 replies
  • 100 views
  • 0 likes
  • 3 in conversation