BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Moise
Calcite | Level 5
 

Hello, 

I have to compare 2 large datasets using proc compare with printing the results.  I used the code below 

Proc compare base=tab1 comp=tab2 ; id anonymat gender; run;

But I have this warning message for all the variables not in ID statement

Note: The MAXPRINT=50 printing limit has been reached for the variable birthdate. No more values will be printed for this comparison

How to solve it?

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

The NOTE is telling you want to do.

Add the MAXPRINT= option to the PROC COMPARE statement.

View solution in original post

5 REPLIES 5
Reeza
Super User
Don't print the results - use the output data sets instead.
SASKiwi
PROC Star

How many differences does your COMPARE difference summary report? You can use the MAXPRINT option to print more differences but beyond a few hundred the output gets too large an other techniques become more useful.

ballardw
Super User

You may need to sort by more variables than the ID variables if there multiple values of the ID var combinations.

 

 

Tom
Super User Tom
Super User

The NOTE is telling you want to do.

Add the MAXPRINT= option to the PROC COMPARE statement.

Moise
Calcite | Level 5
Thank you very much MAXPINT= was the solution to my problem.

sas-innovate-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

Register now!

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
  • 5 replies
  • 1337 views
  • 0 likes
  • 5 in conversation