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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 960 views
  • 0 likes
  • 3 in conversation