BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

Can you please let me know if it is possible to use the break statment conditionally?


I want to summarize the data based on condition.


Or,
2 REPLIES 2
Ksharp
Super User
Hi.
Are you using proc report?
If it is,I think that can not be, you can use compute block to achieve it.
The break is only print the summarize.

Ksharp
Cynthia_sas
Diamond | Level 26
Hi:
The short answer is: NO, you cannot conditionally cause the BREAK statement to execute. I provided a longer answer and code sample in your other post.

cynthia

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch 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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1196 views
  • 0 likes
  • 3 in conversation