BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Geo-
Quartz | Level 8

 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);

 

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3
SASKiwi
PROC Star

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.

Geo-
Quartz | Level 8

sorry.I was running on a Korean version and log was not in English...I am wondering this problem is  more about SAS syntax?

SASKiwi
PROC Star

I think you might have to add the PCTLPRE = option to your OUTPUT statement as well:

https://documentation.sas.com/?docsetId=procstat&docsetTarget=procstat_univariate_syntax21.htm&docse...

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 replies
  • 830 views
  • 0 likes
  • 2 in conversation