For this example you use fictitious medical information data stored in a S AS data set called MEDICAL. Here is a description of the data set:
For this first example,suppose you want to generate a simple report showing all the data. Without using any options (except the data set name), you can write the world's simplest PROC PRINT code.O Actually,this is not true.You could omit the VAR statement © entirely and let the program default to all variables in the MEDICAL data set.In fact,although we frown upon this next suggestion, you can also omit the DATA= option O if the last data set created is the one you want to print. Being explicit here doesn't cost much and is a good habit to build in the great "Battle of Debug."
ExamplePROC PRINT DATA=MEDICAL? O
Here is the resulting output:
Output from Example - Creating a Simple "Bare-Bones" Report
As you can see, without your doing much work,PROC PRINT generates a listing of your data with a default title and variable names as column headings.Also notice that the dates are presented as SAS date values (i.e., the number of days since January 1,1960). We'll fix that shortly.
SAS Programming Related Tutorials
|SASS (Syntactically Awesome Style sheets) Tutorial||R Programming language Tutorial|
SAS Programming Related Interview Questions
|Logistics Interview Questions||SAS Programming,SQL server Interview Questions|
|Clinical SAS Interview Questions||SASS (Syntactically Awesome Style sheets) Interview Questions|
|SQL Server Analysis Services (SSAS) Interview Questions||R Programming language Interview Questions|
|SAS DI Interview Questions||Advanced SAS Interview Questions|
|Base Sas Interview Questions||SAS Macro Interview Questions|
|Clinical Data Management Interview Questions|
Sas Programming Tutorial
Input And Infile
Set, Merge, And Update
Table Lookup Tools
Proc Means And Proc Uimivariate
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.