BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SasStatistics
Pyrite | Level 9

I am doing some Macro experiments to test the debugging tools. 

First I run the code (some random program I wrote): 

 

options mlogic;
%macro MyFun3(random); 
	data MyData; 
		%let random = %sysfunc(upcase(&random)); *Case insensitve
		set sashelp.cars(obs=2);
		length NewCol $ 30;
		
			%if &random. = AA %then %do;
				NewCol = 'AA'; 
			%end;
			
			%else %if &random. = BB %then %do; 
				NewCol = 'BB'; 
			%end;
			
			%else %do; 
				NewCol = "Write something valid";
			%end; 
	run;  
%mend MyFun3;

%MyFun3(AA);

Then, to turn off the debugging tool "mprint" i secondly run the code: 

options mlogic; 

The problem is that this does not turn off the option? 

So the question is: How do I turn off the mlogic option?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26
options nomlogic;
--
Paige Miller

View solution in original post

1 REPLY 1
PaigeMiller
Diamond | Level 26
options nomlogic;
--
Paige Miller

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2841 views
  • 1 like
  • 2 in conversation