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

Is there a method or function, etc. to obtain the number of "Results" displayed in results window?

 

Well,let's call this function “get_num_results_window”.
For example in the figure below

result_0.png
X = get_num_results_window ();
"put x;" shows "0"

 

For example in the figure below

result_1.jpg
X = get_num_results_window ();

"put x;" shows "1"


Thank you for your cooperation!

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

No there isn't. Maybe what you want can be done another way. Why do you need this?

View solution in original post

4 REPLIES 4
ChrisNZ
Tourmaline | Level 20

No there isn't. Maybe what you want can be done another way. Why do you need this?

t_ar_taat
Quartz | Level 8
Thank you your quick comment,ChrisNZ.
Just I want to make a branch.
It is like (maybe not right code,just for showing what I want )

If x = 0 then do;
/* do nothing */
end;
else do;
DM 'ODSRESULTS' CLEAR EDITOR;
end;

Regards
ChrisNZ
Tourmaline | Level 20

If you close the ods destination and start a new one, does that answer your needs?

t_ar_taat
Quartz | Level 8
Yes,It will work. I'll try it,thank you,ChrisNZ.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 1815 views
  • 1 like
  • 2 in conversation