DATA Step, Macro, Functions and more

Number of output in results window

Accepted Solution Solved
Reply
Contributor
Posts: 35
Accepted Solution

Number of output in results window

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!


Accepted Solutions
Solution
‎03-25-2017 01:49 AM
PROC Star
Posts: 1,760

Re: Number of output in results window

Posted in reply to t_ar_taat

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

View solution in original post


All Replies
Solution
‎03-25-2017 01:49 AM
PROC Star
Posts: 1,760

Re: Number of output in results window

Posted in reply to t_ar_taat

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

Contributor
Posts: 35

Re: Number of output in results window

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
PROC Star
Posts: 1,760

Re: Number of output in results window

Posted in reply to t_ar_taat

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

Contributor
Posts: 35

Re: Number of output in results window

Yes,It will work. I'll try it,thank you,ChrisNZ.
☑ This topic is solved.

Need further help from the community? Please ask a new question.

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