Anyone knows what's wrong with "PCTLPTS" here?I want to print 10%,20%...to max.
How to fix?
%macro get(type);
proc univariate data=comp_acct_change;
var dif_&type._amt;
output out=p_dif_&type._amt PCTLPTS=0 to 100 by 10;
run;
%mend;
%get(purc);
I think you might have to add the PCTLPRE = option to your OUTPUT statement as well:
When posting a problem provide as much evidence as you can. In this case you haven't provided a SAS log of your program including any notes and errors. Also run your program with this statement: options mprint; It will make it easier to find where it is going wrong.
sorry.I was running on a Korean version and log was not in English...I am wondering this problem is more about SAS syntax?
I think you might have to add the PCTLPRE = option to your OUTPUT statement as well:
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!
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.