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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 4 replies
  • 1025 views
  • 1 like
  • 2 in conversation