The SAS Output Delivery System and reporting techniques

Read Output SAS

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 144
Accepted Solution

Read Output SAS

Hi everyone,

I'm trying to do some autovalidation of macros. My problem is that there are macros that export the result

in the SAS OUTPUT.

How can I read  the SAS OUTPUT to check if it works?

Thanks for the help,

Antonio


Accepted Solutions
Solution
‎02-06-2014 03:28 AM
Frequent Contributor
Posts: 144

Re: Read Output SAS

Ok, I gonna redirect the output with proc printto to later import to a dataset of the information, and doing this, then I can use the proc compare to ensure

that the outputis like I want.

View solution in original post


All Replies
Super User
Posts: 5,382

Re: Read Output SAS

Why do you want to validate macros, and how?

Please describe your requirement in more detail.

Data never sleeps
Frequent Contributor
Posts: 144

Re: Read Output SAS

To validate macros that have an output, I have a kind of template with the expected output, then I use

the proc compare to ensure that the output is correct. But I have a few macros that have output in SAS

Output, and I don't know how acced to the output to know if it have the correct format automatable way.

Super User
Posts: 5,382

Re: Read Output SAS

Still don't get the overall picture for this, are you testing the source data that is used to produce the results by the macro, or the macro itself?

If the later, it usually is sufficient to to this in manual manner.

Not knowing anything about the macros them self, on way is to test if you could redirect the output to data set using ODS.

Or, you could develop a subroutine (macro), that handles macro output in a centralized way...?

Data never sleeps
Solution
‎02-06-2014 03:28 AM
Frequent Contributor
Posts: 144

Re: Read Output SAS

Ok, I gonna redirect the output with proc printto to later import to a dataset of the information, and doing this, then I can use the proc compare to ensure

that the outputis like I want.

🔒 This topic is solved and locked.

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

Discussion stats
  • 4 replies
  • 464 views
  • 3 likes
  • 2 in conversation