I have two question:
1, what is the difference between output and report ?
2, how do I check the result when I create a table ?
Typically a Report is read by people. Data sets (I assume that is what you mean by output) are used as input to other program elements such as analysis or another report.
How to check: depends on what you are checking. If specific calculations provide example data and see if the result matches expectations; if presence/absence of specific values the variety of tools: proc freq to display counts of values, subsetting the data set with where or if statements to see if any records meet/ fail to meet requirement of values.
Typically a Report is read by people. Data sets (I assume that is what you mean by output) are used as input to other program elements such as analysis or another report.
How to check: depends on what you are checking. If specific calculations provide example data and see if the result matches expectations; if presence/absence of specific values the variety of tools: proc freq to display counts of values, subsetting the data set with where or if statements to see if any records meet/ fail to meet requirement of values.
To not forget the most simple method of checking a result dataset: open it in a viewtable window and look at it.
are you talking about proc sql?
If you want to create a report from PROC SQL just remove the CREATE TABLE part of your query:
proc sql; * Table ;
create table want as
select *
from have;
quit;
proc sql; * Report ;
select *
from have;
quit;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.